| 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="http://crbug.com/259680">Bug 259680</a>: JavaScrip
t setInterval lagging behind'); | 5 description('<a href="http://crbug.com/259680">Bug 259680</a>: JavaScrip
t setInterval lagging behind'); |
| 6 | 6 |
| 7 var jsTestIsAsync = true; | 7 var jsTestIsAsync = true; |
| 8 var intervalDuration = 1000; | 8 var intervalDuration = 1000; |
| 9 var testDuration = 4000; | 9 var testDuration = 4000; |
| 10 var expectedNumFires = 4; | 10 var expectedNumFires = 4; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 testRunner.setPageVisibility("hidden"); | 40 testRunner.setPageVisibility("hidden"); |
| 41 startTime = new Date().getTime(); | 41 startTime = new Date().getTime(); |
| 42 intervalID = window.setInterval(timerFired, intervalDuration); | 42 intervalID = window.setInterval(timerFired, intervalDuration); |
| 43 } | 43 } |
| 44 </script> | 44 </script> |
| 45 </head> | 45 </head> |
| 46 <body onload="runTest()"> | 46 <body onload="runTest()"> |
| 47 <p> | 47 <p> |
| 48 This test ensures that intervals on background pages whose duration is close
to the timer alignment interval don't miss every other firing. | 48 This test ensures that intervals on background pages whose duration is close
to the timer alignment interval don't miss every other firing. |
| 49 </p> | 49 </p> |
| 50 <script src="../js/resources/js-test-post.js"></script> | |
| 51 </body> | 50 </body> |
| 52 </html> | 51 </html> |
| OLD | NEW |