| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
| 4 <script> | 4 <script> |
| 5 description('<a href="https://bugs.webkit.org/show_bug.cgi?id=98474">Bug
98474</a>: Throttle DOM timers on hidden pages.'); | 5 description('<a href="https://bugs.webkit.org/show_bug.cgi?id=98474">Bug
98474</a>: Throttle DOM timers on hidden pages.'); |
| 6 | 6 |
| 7 var jsTestIsAsync = true; | 7 var jsTestIsAsync = true; |
| 8 var previousTime = 0; | 8 var previousTime = 0; |
| 9 var timerCount = 0; | 9 var timerCount = 0; |
| 10 var firstTimerWhileHidden = true; | 10 var firstTimerWhileHidden = true; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 testRunner.dumpAsText(); | 66 testRunner.dumpAsText(); |
| 67 previousTime = Date.now(); | 67 previousTime = Date.now(); |
| 68 setTimeout(testTimer, timeoutInterval); | 68 setTimeout(testTimer, timeoutInterval); |
| 69 } | 69 } |
| 70 </script> | 70 </script> |
| 71 </head> | 71 </head> |
| 72 <body onload="runTest()"> | 72 <body onload="runTest()"> |
| 73 <p> | 73 <p> |
| 74 This test measures the time taken to fire a <span class="timeoutInterval"></
span>ms DOM Timer when the page visibility is set to "visible", "hidden" and the
n back to "visible". Due to hidden page timer throttling, the timer should fire
close to <span id="alignmentInterval"></span>s when page is hidden. And it sho
uld fire close to <span class="timeoutInterval"></span>ms, when the page is visi
ble. | 74 This test measures the time taken to fire a <span class="timeoutInterval"></
span>ms DOM Timer when the page visibility is set to "visible", "hidden" and the
n back to "visible". Due to hidden page timer throttling, the timer should fire
close to <span id="alignmentInterval"></span>s when page is hidden. And it sho
uld fire close to <span class="timeoutInterval"></span>ms, when the page is visi
ble. |
| 75 </p> | 75 </p> |
| 76 <script src="../js/resources/js-test-post.js"></script> | |
| 77 </body> | 76 </body> |
| 78 </html> | 77 </html> |
| OLD | NEW |