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

Unified Diff: LayoutTests/compositing/plugins/invalidate_rect.html

Issue 196653012: Remove display() from compositing/ LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: softwarecompositing expectations Created 6 years, 9 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
« no previous file with comments | « LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/plugins/invalidate_rect.html
diff --git a/LayoutTests/compositing/plugins/invalidate_rect.html b/LayoutTests/compositing/plugins/invalidate_rect.html
index b2c35fcab2d0459731c3096c9e6149c11c4714b2..a9f6ea26f33b42b1c7d99e66e6927941cb4a993a 100644
--- a/LayoutTests/compositing/plugins/invalidate_rect.html
+++ b/LayoutTests/compositing/plugins/invalidate_rect.html
@@ -9,20 +9,27 @@
}
</style>
+ <script src="../../resources/run-after-display.js"></script>
<script>
- if (window.testRunner)
+ if (window.testRunner) {
testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
var paintCount = 0;
function onLoad()
{
- testRunner.display();
- paintCount = 0;
- document.getElementById('testPlugin').invalidateRect(0, 0, 200, 200);
- testRunner.displayInvalidatedRegion();
- if (paintCount > 0)
- document.getElementById('result').innerHTML = "SUCCESS";
+ runAfterDisplay(function() {
+ paintCount = 0;
+ document.getElementById('testPlugin').invalidateRect(0, 0, 200, 200);
+ runAfterDisplay(function() {
+ if (paintCount > 0)
+ document.getElementById('result').innerHTML = "SUCCESS";
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
+ });
}
function didPaint()
« no previous file with comments | « LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698