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

Unified Diff: LayoutTests/fast/events/page-visibility-iframe-move-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-move-test.html
===================================================================
--- LayoutTests/fast/events/page-visibility-iframe-move-test.html (revision 88002)
+++ LayoutTests/fast/events/page-visibility-iframe-move-test.html (working copy)
@@ -20,9 +20,9 @@
iframe = window2.document.getElementById("iframe");
- shouldBeTrue("window.document.webkitIsVisible");
- shouldBeTrue("window2.document.webkitIsVisible");
- shouldBeTrue("iframe.contentDocument.webkitIsVisible");
+ shouldBeFalse("window.document.webkitHidden");
+ shouldBeFalse("window2.document.webkitHidden");
+ shouldBeFalse("iframe.contentDocument.webkitHidden");
// Change the visibility of the current page to invisible.
if (window.layoutTestController) {
@@ -32,17 +32,17 @@
}
function onVisibilityChange() {
- shouldBeFalse("window.document.webkitIsVisible");
- shouldBeTrue("window2.document.webkitIsVisible");
- shouldBeTrue("iframe.contentDocument.webkitIsVisible");
+ shouldBeTrue("window.document.webkitHidden");
+ shouldBeFalse("window2.document.webkitHidden");
+ shouldBeFalse("iframe.contentDocument.webkitHidden");
window.document.adoptNode(iframe);
window.document.body.appendChild(iframe);
debug("Adopted iframe to Window 1");
- shouldBeFalse("window.document.webkitIsVisible");
- shouldBeTrue("window2.document.webkitIsVisible");
- shouldBeFalse("iframe.contentDocument.webkitIsVisible");
+ shouldBeTrue("window.document.webkitHidden");
+ shouldBeFalse("window2.document.webkitHidden");
+ shouldBeTrue("iframe.contentDocument.webkitHidden");
window2.close();
@@ -56,7 +56,7 @@
}
debug("Window 1 Loaded");
- document.addEventListener("webkitvisibilitystatechange",
+ document.addEventListener("webkitvisibilitychange",
onVisibilityChange, false);
window2 = window.open("resources/page-visibility-iframe-move-new-page.html");

Powered by Google App Engine
This is Rietveld 408576698