blob: 347f4b7e59ca555f2da23c3fd5affd89061edd98 [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; 1)</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[2] following::ol[1]/li[7] following::ol[1]/li[14]/ul/li[2]" />
Anne van Kesteren66b54172010-08-11 18:02:178 </head>
9 <body>
10 <div id="log"></div>
11 <script>
12 var test = async_test()
13 function init() {
14 test.step(function() {
15 var client = new self[0].XMLHttpRequest()
16 client.onreadystatechange = function() {
17 test.step(function() {
Wanming Lina6767692016-07-26 10:57:4518 if(client.readyState == 4) {
Anne van Kesteren66b54172010-08-11 18:02:1719 assert_equals(client.responseText, "bottom\n")
20 test.done()
Wanming Lina6767692016-07-26 10:57:4521 }
Anne van Kesteren66b54172010-08-11 18:02:1722 })
23 }
Hallvord Reiar M. Steen4e96dac2013-07-03 12:42:1024 client.open("GET", "folder.txt")
25 client.send("")
Anne van Kesteren66b54172010-08-11 18:02:1726 })
27 }
28 </script>
29 <iframe src="resources/init.htm"></iframe>
30 </body>
31</html>