Revision 81cd21da1bc6a665a2b8a3439a065aa00dd5c14b authored by Aryeh Gregor on 26 October 2016, 13:20:08 UTC, committed by Aryeh Gregor on 26 October 2016, 13:20:31 UTC
Missed in #3615.
1 parent 0acd8f6
open-method-bogus.htm
<!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>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...