mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-08 20:28:42 +02:00
--HG-- rename : testing/web-platform/tests/battery-status/battery-full-manual.html => testing/web-platform/tests/FileAPI/FileReader/Progress_event_bubbles_cancelable.html rename : testing/web-platform/tests/XMLHttpRequest/send-entity-body-none.htm => testing/web-platform/tests/XMLHttpRequest/open-during-abort.htm rename : testing/web-platform/tests/DOMEvents/tests/approved/EventListener.dispatch.new.event.html => testing/web-platform/tests/dom/events/Event-dispatch-reenter.html rename : testing/web-platform/tests/html/semantics/grouping-content/the-li-element/grouping-li-novalue-MANUAL.html => testing/web-platform/tests/html/semantics/grouping-content/the-li-element/grouping-li-novalue-manual.html rename : testing/web-platform/tests/XMLHttpRequest/send-entity-body-none.htm => testing/web-platform/tests/html/semantics/interactive-elements/the-details-element/details.html rename : testing/web-platform/tests/serve => testing/web-platform/tests/serve.py rename : testing/web-platform/tests/webstorage/storage_builtins.js => testing/web-platform/tests/webstorage/builtins.html rename : testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-onload.html => testing/web-platform/tests/webstorage/clear.html rename : testing/web-platform/tests/battery-status/battery-promise.html => testing/web-platform/tests/webstorage/in.html rename : testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event.html => testing/web-platform/tests/webstorage/indexing.html rename : testing/web-platform/tests/battery-status/battery-promise.html => testing/web-platform/tests/webstorage/length.html rename : testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event.html => testing/web-platform/tests/webstorage/removeitem.html
28 lines
823 B
HTML
28 lines
823 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>XMLHttpRequest: open() - bogus methods</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method" data-tested-assertations="following::ol[1]/li[4]" />
|
|
</head>
|
|
<body>
|
|
<div id="log"></div>
|
|
<script>
|
|
function method(method) {
|
|
test(function() {
|
|
var client = new XMLHttpRequest()
|
|
assert_throws("SyntaxError", function() { client.open(method, "...") })
|
|
}, document.title + " (" + method + ")")
|
|
}
|
|
method("")
|
|
method(">")
|
|
method(" GET")
|
|
method("G T")
|
|
method("@GET")
|
|
method("G:ET")
|
|
method("GET?")
|
|
method("GET\n")
|
|
</script>
|
|
</body>
|
|
</html>
|