Revision 5b272d79f98537bdf1f3cf69a0142cdeb6e9f3ba authored by Simon Sapin on 08 April 2018, 06:53:12 UTC, committed by Simon Sapin on 08 April 2018, 06:53:12 UTC
1 parent f161804
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 ...