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

Unified Diff: LayoutTests/compositing/repaint/newly-composited-on-scroll.html

Issue 181653006: Remove testRunner.display() from most compositing/ tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert change to plugin test Created 6 years, 10 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/compositing/repaint/newly-composited-on-scroll.html
diff --git a/LayoutTests/compositing/repaint/newly-composited-on-scroll.html b/LayoutTests/compositing/repaint/newly-composited-on-scroll.html
index 11178f3f5efe997b6d625aa88126000d63bda0d8..56cb5657263b04bd46ebfffd4f14b0b1daf247ed 100644
--- a/LayoutTests/compositing/repaint/newly-composited-on-scroll.html
+++ b/LayoutTests/compositing/repaint/newly-composited-on-scroll.html
@@ -54,6 +54,7 @@
</head>
<script src="../../fast/repaint/resources/repaint.js"></script>
+<script src="../../resources/run-after-display.js"></script>
<script>
if (window.testRunner) {
@@ -62,17 +63,13 @@
}
function repaintTest() {
- if (window.testRunner)
- testRunner.display();
-
- document.getElementById('overflow').scrollTop = 30;
- if (window.testRunner)
- testRunner.display();
-
- window.setTimeout(function() {
- document.getElementById('overflow').scrollTop = 50;
- testRunner.notifyDone();
- }, 0);
+ runAfterDisplay(function() {
+ document.getElementById('overflow').scrollTop = 30;
+ runAfterDisplay(function() {
+ document.getElementById('overflow').scrollTop = 50;
+ testRunner.notifyDone();
+ });
+ });
}
</script>

Powered by Google App Engine
This is Rietveld 408576698