Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / html / imports / import-defaultView.html
1 <!DOCTYPE html>
2 <html>
3 <script src="../../../resources/js-test.js"></script>
4 <head>
5 <link id="importLink" rel="import" href="resources/hello.html">
6 </head>
7 <body>
8 <script>
9 shouldBe("importLink.import.defaultView", "document.defaultView");
10
11 var xhr = new XMLHttpRequest();
12 xhr.open("GET", "resources/root.html", false);
13 xhr.responseType = "document";
14 xhr.send();
15 shouldBeNull("xhr.response.defaultView");
16
17 createdDoc = document.implementation.createHTMLDocument("Hello");
18 shouldBeNull("createdDoc.defaultView");
19
20 </script>
21 </body>
22 </html>