blob: 381104e9ead60746b155a1feb82b8b79144cc681 [file] [log] [blame]
This test checks that an iframe that moves between pages with different visibility will have the correct visibility value.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Window 1 is loaded
Open window 2
Window 2 is loaded
Will change visibility of window 1
PASS window.document.hidden is false
PASS window2.document.hidden is false
PASS iframe.contentDocument.hidden is false
VisibilityChange event is received
PASS window.document.hidden is true
PASS window2.document.hidden is false
PASS iframe.contentDocument.hidden is false
Frame is moved
PASS window.document.hidden is true
PASS window2.document.hidden is false
PASS iframe.contentDocument.hidden is true
PASS successfullyParsed is true
TEST COMPLETE