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

Unified Diff: LayoutTests/fast/repaint/vertical-overflow-parent.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: 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/vertical-overflow-parent.html
diff --git a/LayoutTests/fast/repaint/vertical-overflow-parent.html b/LayoutTests/fast/repaint/vertical-overflow-parent.html
index 92a7949c31b2c94cc322293702ddfef744e5f8cd..912c02495df692447e9a1b9c9c61e5ed4cdb4059 100644
--- a/LayoutTests/fast/repaint/vertical-overflow-parent.html
+++ b/LayoutTests/fast/repaint/vertical-overflow-parent.html
@@ -38,7 +38,9 @@
target.style.visibility = "visible";
};
var container = document.getElementsByClassName("container")[0];
- container.scrollLeft = 0;
- runRepaintTest();
+ runAfterDisplay(function() {
+ container.scrollLeft = 0;
+ runRepaintTest();
+ });
</script>
</body></html>

Powered by Google App Engine
This is Rietveld 408576698