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

Unified Diff: LayoutTests/compositing/repaint/newly-composited-repaint-rect.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-repaint-rect.html
diff --git a/LayoutTests/compositing/repaint/newly-composited-repaint-rect.html b/LayoutTests/compositing/repaint/newly-composited-repaint-rect.html
index 018449be5a62c02256bc719af5e3fcc881559d14..77182642e1452a88aaf3c393231439d6c8a49324 100644
--- a/LayoutTests/compositing/repaint/newly-composited-repaint-rect.html
+++ b/LayoutTests/compositing/repaint/newly-composited-repaint-rect.html
@@ -46,6 +46,7 @@
</head>
+<script src="../../resources/run-after-display.js"></script>
<script src="../../fast/repaint/resources/repaint.js"></script>
<script>
@@ -64,14 +65,11 @@
// Force DumpRenderTree to do a layout and repaint here, this is where the repaintRect
// goes wrong because it does not get updated for a newly composited element.
- if (window.testRunner)
- testRunner.display();
-
- window.setTimeout(function() {
+ runAfterDisplay(function() {
// Scrolling a little will demonstrate whether the repaint rect is correct or not.
document.getElementById('scrolldiv').scrollTop = 500;
testRunner.notifyDone();
- }, 0);
+ });
}
</script>

Powered by Google App Engine
This is Rietveld 408576698