Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: LayoutTests/fast/dom/timer-throttling-hidden-page.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698