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

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: Remove newline. 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..2932195737ca9afdf0c2e714d50865ed64c120c7 100644
--- a/LayoutTests/fast/repaint/resources/text-based-repaint.js
+++ b/LayoutTests/fast/repaint/resources/text-based-repaint.js
@@ -51,6 +51,16 @@ function runRepaintAndPixelTest()
runRepaintTest();
}
+function runAfterDisplay(callback)
+{
+ if (!window.testRunner) {
+ setTimeout(callback, 500);
+ } else {
+ testRunner.waitUntilDone();
+ testRunner.displayAsyncThen(callback);
+ }
+}
+
function forceStyleRecalc()
{
if (document.body)
« no previous file with comments | « LayoutTests/fast/repaint/horizontal-bt-overflow-same.html ('k') | LayoutTests/fast/repaint/vertical-overflow-child.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698