Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / page-visibility-null-view.html
blob342ebe2e165bd151a61e0dbfe870a19053a172ea
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
5 <script>
7 description("This test checks that Page Visibility state values are correct when a document has no defaultView.");
9 var subdocument = document.implementation.createDocument('http://www.w3.org/1999/xhtml', 'html', null);
11 shouldBeTrue("subdocument.defaultView == null");
12 shouldBeEqualToString("subdocument.visibilityState", "hidden");
13 shouldBeTrue("subdocument.hidden");
15 </script>
18 </head>
19 </html>