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

Side by Side Diff: LayoutTests/fast/loader/unschedule-relayout-after-unload.html

Issue 615033002: Refactor of various layout tests to use RAF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix use-detatch.svg Created 6 years, 2 months 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
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 <pre id="log"></pre> 3 <pre id="log"></pre>
4 </body> 4 </body>
5 <script> 5 <script>
6 6
7 if (window.testRunner) { 7 if (window.testRunner) {
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 testRunner.waitUntilDone(); 9 testRunner.waitUntilDone();
10 } 10 }
11 11
12 window.onpageshow = function(evt) { 12 window.onpageshow = function(evt) {
13 // Location changes need to happen outside the onload handler to generate hi story entries. 13 // Location changes need to happen outside the onload handler to generate hi story entries.
14 setTimeout(function() {window.location.href = 'resources/unschedule-relayout -after-unload-target.html';}, 0); 14 requestAnimationFrame(function() {window.location.href = 'resources/unschedu le-relayout-after-unload-target.html';});
15 }; 15 };
16 16
17 window.onpagehide = function(evt) { 17 window.onpagehide = function(evt) {
18 document.getElementById('log').innerHTML += 'onpagehide'; 18 document.getElementById('log').innerHTML += 'onpagehide';
19 }; 19 };
20 20
21 </script> 21 </script>
22 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698