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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/loader/unschedule-relayout-after-unload.html
diff --git a/LayoutTests/fast/loader/unschedule-relayout-after-unload.html b/LayoutTests/fast/loader/unschedule-relayout-after-unload.html
index 759a8f0e8c655207aae83918c01e01e7adfbb961..de00e9c26cee2045015c309a787e85a34fbebc9d 100644
--- a/LayoutTests/fast/loader/unschedule-relayout-after-unload.html
+++ b/LayoutTests/fast/loader/unschedule-relayout-after-unload.html
@@ -11,7 +11,7 @@ if (window.testRunner) {
window.onpageshow = function(evt) {
// Location changes need to happen outside the onload handler to generate history entries.
- setTimeout(function() {window.location.href = 'resources/unschedule-relayout-after-unload-target.html';}, 0);
+ requestAnimationFrame(function() {window.location.href = 'resources/unschedule-relayout-after-unload-target.html';});
};
window.onpagehide = function(evt) {

Powered by Google App Engine
This is Rietveld 408576698