Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Page Visibility API] View-less documents should report as hidden
https://bugs.webkit.org/show_bug.cgi?id=99410 Reviewed by Tony Gentilcore. Source/WebCore: Test: fast/events/page-visibility-null-view.html * dom/Document.cpp: (WebCore::Document::visibilityState): LayoutTests: * fast/events/page-visibility-null-view-expected.txt: Added. * fast/events/page-visibility-null-view.html: Added. Canonical link: https://commits.webkit.org/117491@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@131530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
James Simonsen
committed
Oct 17, 2012
1 parent
d2caa21
commit 00814d968273bb4c7bfa4b2dbc9fca4976bb4173
Showing
9 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,12 @@ | ||
This test checks that Page Visibility state values are correct when a document has no defaultView. | ||
|
||
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | ||
|
||
|
||
PASS subdocument.defaultView == null is true | ||
PASS subdocument.webkitVisibilityState is "hidden" | ||
PASS subdocument.webkitHidden is true | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,20 @@ | ||
<html> | ||
<head> | ||
<script src="../js/resources/js-test-pre.js"></script> | ||
|
||
<script> | ||
|
||
description("This test checks that Page Visibility state values are correct when a document has no defaultView."); | ||
|
||
var subdocument = document.implementation.createDocument('http://www.w3.org/1999/xhtml', 'html', null); | ||
|
||
shouldBeTrue("subdocument.defaultView == null"); | ||
shouldBeEqualToString("subdocument.webkitVisibilityState", "hidden"); | ||
shouldBeTrue("subdocument.webkitHidden"); | ||
|
||
</script> | ||
|
||
<script src="../js/resources/js-test-post.js"></script> | ||
|
||
</head> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters