OLD | NEW |
1 <html> | 1 <html> |
2 <body onload="load()"> | 2 <body onload="load()"> |
3 <script> | 3 <script> |
4 if (window.testRunner) { | 4 if (window.testRunner) { |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 } | 7 } |
8 | 8 |
9 function load() | 9 function load() |
10 { | 10 { |
11 document.addEventListener("visibilitychange", onVisibilityChange, false); | 11 document.addEventListener("visibilitychange", onVisibilityChange, false); |
12 location = "data:text/html,You should have seen a warning message for alert
dialog.<script>if (window.testRunner) testRunner.notifyDone(); </" + "script>"; | 12 location = "resources/page-visibility-alert-success.html"; |
13 } | 13 } |
14 | 14 |
15 function onVisibilityChange() | 15 function onVisibilityChange() |
16 { | 16 { |
17 alert("visibilitychanged"); | 17 alert("visibilitychanged"); |
18 } | 18 } |
19 </script> | 19 </script> |
20 start document | 20 start document |
21 </body> | 21 </body> |
22 </html> | 22 </html> |
OLD | NEW |