| 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="../../js/resources/js-test-pre.js"></script> |
| 5 <link id="master" rel="import" href="import-master.html"> | 5 <link id="master" rel="import" href="import-master.html"> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <script> | 8 <script> |
| 9 description("Ensure XHR document doesn't load imports"); | 9 description("Ensure XHR document doesn't load imports"); |
| 10 window.jsTestIsAsync = true; | 10 window.jsTestIsAsync = true; |
| 11 | 11 |
| 12 var xhr = new XMLHttpRequest(); | 12 var xhr = new XMLHttpRequest(); |
| 13 xhr.open("GET", "resources/root.html", true); | 13 xhr.open("GET", "resources/root.html", true); |
| 14 xhr.responseType = "document"; | 14 xhr.responseType = "document"; |
| 15 xhr.onload = function(e) { | 15 xhr.onload = function(e) { |
| 16 link = xhr.response.head.querySelector("#hello"); | 16 link = xhr.response.head.querySelector("#hello"); |
| 17 shouldBeNull("link.import"); | 17 shouldBeNull("link.import"); |
| 18 finishJSTest(); | 18 finishJSTest(); |
| 19 } | 19 } |
| 20 | 20 |
| 21 xhr.send(); | 21 xhr.send(); |
| 22 | 22 |
| 23 </script> | 23 </script> |
| 24 <script src="../../js/resources/js-test-post.js"></script> | |
| 25 </body> | 24 </body> |
| 26 </html> | 25 </html> |
| OLD | NEW |