Upstream version 10.39.225.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 // This used to be non-null but not longer is.
10 // See http://crbug.com/408272
11 shouldBeNull("importLink.import.defaultView");
12
13 window.jsTestIsAsync = true;
14
15 var xhr = new XMLHttpRequest();
16 xhr.open("GET", "resources/root.html", true);
17 xhr.responseType = "document";
18 xhr.onload = function() {
19   shouldBeNull("xhr.response.defaultView");
20
21   createdDoc = document.implementation.createHTMLDocument("Hello");
22   shouldBeNull("createdDoc.defaultView");
23   finishJSTest();
24 };
25 xhr.send();
26
27 </script>
28 </body>
29 </html>