gecko-dev/testing/web-platform/tests/XMLHttpRequest/open-method-bogus.htm
James Graham 6e63d652c5 Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly
--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
2015-03-23 13:21:13 +00:00

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>