blob: 263e7b6db7eb1581028bad1c742627d597e90540 [file] [log] [blame]
Anne van Kesteren66b54172010-08-11 18:02:171<!DOCTYPE html>
2<html>
3 <head>
4 <title>XMLHttpRequest: open() - bogus methods</title>
5 <script src="/resources/testharness.js"></script>
Ms2ger6f083e72012-08-05 08:38:146 <script src="/resources/testharnessreport.js"></script>
Ms2ger91fef142014-11-01 09:24:377 <link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method" data-tested-assertations="following::ol[1]/li[4]" />
Anne van Kesteren66b54172010-08-11 18:02:178 </head>
9 <body>
10 <div id="log"></div>
11 <script>
12 function method(method) {
13 test(function() {
14 var client = new XMLHttpRequest()
Hallvord Reiar M. Steen64dacb72013-07-01 08:31:5415 assert_throws("SyntaxError", function() { client.open(method, "...") })
Anne van Kesteren66b54172010-08-11 18:02:1716 }, document.title + " (" + method + ")")
17 }
18 method("")
19 method(">")
20 method(" GET")
21 method("G T")
Ms2gerc5ca4db2015-03-03 16:28:5222 method("@GET")
23 method("G:ET")
24 method("GET?")
25 method("GET\n")
Anne van Kesteren66b54172010-08-11 18:02:1726 </script>
27 </body>
28</html>