blob: a27d2b366c0680d2a30cbb107c3496abb0264908 [file] [log] [blame]
Anne van Kesteren66b54172010-08-11 18:02:171<!DOCTYPE html>
2<html>
3 <head>
4 <title>XMLHttpRequest: open() resolving URLs (multi-Window; 5)</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[2]/ol[1]/li[1]" />
Anne van Kesteren66b54172010-08-11 18:02:178 </head>
9 <body>
10 <div id="log"></div>
11 <script>
12 var test = async_test(),
13 client,
14 count = 0
15 function init() {
16 test.step(function() {
17 if(0 == count) {
18 client = new self[0].XMLHttpRequest()
19 count++
20 self[0].location.reload()
21 } else if(1 == count) {
Hallvord Reiar M. Steen64dacb72013-07-01 08:31:5422 assert_throws("InvalidStateError", function() { client.open("GET", "...") })
Anne van Kesteren66b54172010-08-11 18:02:1723 test.done()
24 }
25 })
26 }
27 </script>
28 <iframe src="resources/init.htm"></iframe>
29 </body>
30</html>