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

Unified Diff: LayoutTests/fast/repaint/horizontal-bt-overflow-same.html

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/horizontal-bt-overflow-same.html
diff --git a/LayoutTests/fast/repaint/horizontal-bt-overflow-same.html b/LayoutTests/fast/repaint/horizontal-bt-overflow-same.html
index ca19f7782b2d26687828109d735553c04f66f049..f8e44c1b08aa682b95e118ae7706220c9b7673df 100644
--- a/LayoutTests/fast/repaint/horizontal-bt-overflow-same.html
+++ b/LayoutTests/fast/repaint/horizontal-bt-overflow-same.html
@@ -37,7 +37,9 @@
target.style.visibility = "visible";
};
var container = document.getElementsByClassName("container")[0];
- container.scrollTop = 0;
- runRepaintTest();
+ runAfterDisplay(function() {
+ container.scrollTop = 0;
+ runRepaintTest();
+ });
</script>
</body></html>
« no previous file with comments | « LayoutTests/fast/repaint/horizontal-bt-overflow-parent.html ('k') | LayoutTests/fast/repaint/resources/text-based-repaint.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698