youenn.fablet@crf.canon.fr | 9663e66 | 2015-10-25 07:39:22 +0000 | [diff] [blame] | 1 | <!doctype html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>XMLHttpRequest: open() resolving URLs (about:blank iframe)</title> |
| 5 | <script src="/resources/testharness.js"></script> |
| 6 | <script src="/resources/testharnessreport.js"></script> |
| 7 | <link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method" data-tested-assertations="following::ol/li[2]/ol/li[2] following::ol/li[7] following::ol/li[14]/ul/li[2]" /> |
| 8 | <link rel="help" href="https://xhr.spec.whatwg.org/#the-responsetext-attribute" data-tested-assertations="following::ol/li[4]" /> |
| 9 | <link rel="help" href="https://xhr.spec.whatwg.org/#concept-xmlhttprequest-document" data-tested-assertations=".." /> |
| 10 | </head> |
| 11 | <body> |
| 12 | <div id="log"></div> |
| 13 | <iframe src="about:blank"></iframe> |
| 14 | <script> |
| 15 | test(function() { |
| 16 | var client = new self[0].XMLHttpRequest() |
| 17 | client.open("GET", "folder.txt", false) |
| 18 | client.send("") |
| 19 | assert_equals(client.responseText, "top\n") |
| 20 | }) |
| 21 | </script> |
| 22 | </body> |
| 23 | </html> |