| 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 that the XMLHttpRequest responseType attribute i
s modifiable in the HEADERS_RECEIVED state.'); | 6 description('This tests that the XMLHttpRequest responseType attribute i
s modifiable in the HEADERS_RECEIVED state.'); |
| 7 window.jsTestIsAsync = true; | 7 window.jsTestIsAsync = true; |
| 8 | 8 |
| 9 var xhr = new XMLHttpRequest(); | 9 var xhr = new XMLHttpRequest(); |
| 10 xhr.open('GET', window.location.href); | 10 xhr.open('GET', window.location.href); |
| 11 xhr.onload = function() { | 11 xhr.onload = function() { |
| 12 shouldBeTrue('xhr.response === xhr.responseXML'); | 12 shouldBeTrue('xhr.response === xhr.responseXML'); |
| 13 shouldBeEqualToString('xhr.responseType', 'document'); | 13 shouldBeEqualToString('xhr.responseType', 'document'); |
| 14 finishJSTest(); | 14 finishJSTest(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 27 } | 27 } |
| 28 }; | 28 }; |
| 29 xhr.send(null); | 29 xhr.send(null); |
| 30 </script> | 30 </script> |
| 31 </head> | 31 </head> |
| 32 <body> | 32 <body> |
| 33 <div id="description"></div> | 33 <div id="description"></div> |
| 34 <div id="console"></div> | 34 <div id="console"></div> |
| 35 </body> | 35 </body> |
| 36 </html> | 36 </html> |
| OLD | NEW |