OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
4 | 4 |
5 <script> | 5 <script> |
6 | 6 |
7 description("This test checks that Page Visibility state values are correct when
a document has no defaultView."); | 7 description("This test checks that Page Visibility state values are correct when
a document has no defaultView."); |
8 | 8 |
9 var subdocument = document.implementation.createDocument('http://www.w3.org/1999
/xhtml', 'html', null); | 9 var subdocument = document.implementation.createDocument('http://www.w3.org/1999
/xhtml', 'html', null); |
10 | 10 |
11 shouldBeTrue("subdocument.defaultView == null"); | 11 shouldBeTrue("subdocument.defaultView == null"); |
12 shouldBeEqualToString("subdocument.webkitVisibilityState", "hidden"); | 12 shouldBeEqualToString("subdocument.webkitVisibilityState", "hidden"); |
13 shouldBeTrue("subdocument.webkitHidden"); | 13 shouldBeTrue("subdocument.webkitHidden"); |
14 | 14 |
15 </script> | 15 </script> |
16 | 16 |
17 <script src="../js/resources/js-test-post.js"></script> | |
18 | 17 |
19 </head> | 18 </head> |
20 </html> | 19 </html> |
OLD | NEW |