OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <script> | 5 <script> |
6 description('This tests the XMLHttpRequest responseXML loading an HTML d
ocument with no specified responseType.'); | 6 description('This tests the XMLHttpRequest responseXML loading an HTML d
ocument with no specified responseType.'); |
7 | 7 |
8 window.jsTestIsAsync = true; | 8 window.jsTestIsAsync = true; |
9 var xhr = new XMLHttpRequest(), | 9 var xhr = new XMLHttpRequest(), |
10 url = window.location.href; | 10 url = window.location.href; |
11 xhr.onload = function() { | 11 xhr.onload = function() { |
12 shouldBeNull('xhr.responseXML'); | 12 shouldBeNull('xhr.responseXML'); |
13 finishJSTest(); | 13 finishJSTest(); |
14 }; | 14 }; |
15 xhr.onerror = function() { | 15 xhr.onerror = function() { |
16 testFailed('The XHR request to an existing resource failed: "' + url
+ '"'); | 16 testFailed('The XHR request to an existing resource failed: "' + url
+ '"'); |
17 finishJSTest(); | 17 finishJSTest(); |
18 }; | 18 }; |
19 xhr.open('GET', url); | 19 xhr.open('GET', url); |
20 xhr.send(null); | 20 xhr.send(null); |
21 </script> | 21 </script> |
22 </head> | 22 </head> |
23 <body> | 23 <body> |
24 <div id="description"></div> | 24 <div id="description"></div> |
25 <div id="console"></div> | 25 <div id="console"></div> |
26 </body> | 26 </body> |
27 </html> | 27 </html> |
OLD | NEW |