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

Unified Diff: LayoutTests/fast/repaint/resources/text-based-repaint.js

Issue 791453007: Deflake repaint layout tests which assumed scroll would happen before first paint. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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/repaint/resources/text-based-repaint.js
diff --git a/LayoutTests/fast/repaint/resources/text-based-repaint.js b/LayoutTests/fast/repaint/resources/text-based-repaint.js
index c85bb11c258f7a8303da774562a64d87e6ee3cad..4a0b96601c1fc63e8ffa08862143c508190ae7d6 100644
--- a/LayoutTests/fast/repaint/resources/text-based-repaint.js
+++ b/LayoutTests/fast/repaint/resources/text-based-repaint.js
@@ -51,6 +51,17 @@ function runRepaintAndPixelTest()
runRepaintTest();
}
+function runAfterDisplay(callback)
+{
+ if (!window.testRunner) {
+ setTimeout(callback, 500);
+ } else {
+ testRunner.waitUntilDone();
+ testRunner.displayAsyncThen(callback);
+ }
+
Xianzhu 2014/12/12 16:42:00 Nit: remove this line.
rmcilroy 2014/12/12 17:20:17 Done.
+}
+
function forceStyleRecalc()
{
if (document.body)

Powered by Google App Engine
This is Rietveld 408576698