OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script src="../../../resources/js-test.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
4 <head> | 4 <head> |
5 <link id="importLink" rel="import" href="resources/hello.html"> | 5 <link id="importLink" rel="import" href="resources/hello.html"> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <script> | 8 <script> |
9 shouldBe("importLink.import.defaultView", "document.defaultView"); | 9 // This used to be non-null but not longer is. |
| 10 // See http://crbug.com/408272 |
| 11 shouldBeNull("importLink.import.defaultView"); |
10 | 12 |
11 window.jsTestIsAsync = true; | 13 window.jsTestIsAsync = true; |
12 | 14 |
13 var xhr = new XMLHttpRequest(); | 15 var xhr = new XMLHttpRequest(); |
14 xhr.open("GET", "resources/root.html", true); | 16 xhr.open("GET", "resources/root.html", true); |
15 xhr.responseType = "document"; | 17 xhr.responseType = "document"; |
16 xhr.onload = function() { | 18 xhr.onload = function() { |
17 shouldBeNull("xhr.response.defaultView"); | 19 shouldBeNull("xhr.response.defaultView"); |
18 | 20 |
19 createdDoc = document.implementation.createHTMLDocument("Hello"); | 21 createdDoc = document.implementation.createHTMLDocument("Hello"); |
20 shouldBeNull("createdDoc.defaultView"); | 22 shouldBeNull("createdDoc.defaultView"); |
21 finishJSTest(); | 23 finishJSTest(); |
22 }; | 24 }; |
23 xhr.send(); | 25 xhr.send(); |
24 | 26 |
25 </script> | 27 </script> |
26 </body> | 28 </body> |
27 </html> | 29 </html> |
OLD | NEW |