Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: LayoutTests/fast/events/page-visibility-iframe-propagation-test.html

Issue 7065057: Merge 87802 - 2011-06-01 Shishir Agrawal <shishir@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/events/page-visibility-iframe-propagation-test.html
===================================================================
--- LayoutTests/fast/events/page-visibility-iframe-propagation-test.html (revision 88002)
+++ LayoutTests/fast/events/page-visibility-iframe-propagation-test.html (working copy)
@@ -25,27 +25,27 @@
function checkIsPageVisible() {
debug("Main Page:");
shouldBeEqualToString("document.webkitVisibilityState", "visible");
- shouldBeTrue("document.webkitIsVisible");
+ shouldBeFalse("document.webkitHidden");
}
function checkIsPageHidden() {
debug("Main Page:");
shouldBeEqualToString("document.webkitVisibilityState", "hidden");
- shouldBeFalse("document.webkitIsVisible");
+ shouldBeTrue("document.webkitHidden");
}
function checkIsChildFrameVisible() {
debug("Child Frame:");
shouldBeEqualToString("childFrame.contentDocument.webkitVisibilityState",
"visible");
- shouldBeTrue("childFrame.contentDocument.webkitIsVisible");
+ shouldBeFalse("childFrame.contentDocument.webkitHidden");
}
function checkIsChildFrameHidden() {
debug("Child Frame:");
shouldBeEqualToString("childFrame.contentDocument.webkitVisibilityState",
"hidden");
- shouldBeFalse("childFrame.contentDocument.webkitIsVisible");
+ shouldBeTrue("childFrame.contentDocument.webkitHidden");
}
// We will try to change the visibility states as:
@@ -59,8 +59,8 @@
function startTest() {
childFrame = document.getElementById("childFrame");
childFrame.contentDocument.addEventListener(
- "webkitvisibilitystatechange", onChildFrameVisibilityChange, false);
- document.addEventListener("webkitvisibilitystatechange",
+ "webkitvisibilitychange", onChildFrameVisibilityChange, false);
+ document.addEventListener("webkitvisibilitychange",
onVisibilityChange, false);
checkIsPageVisible();

Powered by Google App Engine
This is Rietveld 408576698