| Bug 98474: Throttle DOM timers on hidden pages. |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| PASS timerIntervalWhilePageVisible is within 20 of 100 |
| PASS firstTimerIntervalWhilePageHidden is >= 80 |
| PASS firstTimerIntervalWhilePageHidden <= 1120 is true |
| PASS timerIntervalWhilePageHidden is within 20 of 1000 |
| PASS timerIntervalWhilePageVisible is within 20 of 100 |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| This test measures the time taken to fire a 100ms DOM Timer when the page visibility is set to "visible", "hidden" and then back to "visible". Due to hidden page timer throttling, the timer should fire close to 1s when page is hidden. And it should fire close to 100ms, when the page is visible. |