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

Unified Diff: LayoutTests/compositing/webgl/webgl-repaint.html

Issue 196353013: Convert some repaint tests to not call display() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More expectations, remove do-not-repaint tricky test 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/TestExpectations ('k') | LayoutTests/css3/flexbox/repaint.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/webgl/webgl-repaint.html
diff --git a/LayoutTests/compositing/webgl/webgl-repaint.html b/LayoutTests/compositing/webgl/webgl-repaint.html
index 7139d9ddf6cdc9c780884e81c4a94da17051153b..4570efcc544c41673eaa31932016c348600a7c3c 100644
--- a/LayoutTests/compositing/webgl/webgl-repaint.html
+++ b/LayoutTests/compositing/webgl/webgl-repaint.html
@@ -12,6 +12,7 @@ canvas {
border: 1px solid black;
}
</style>
+<script src="../../resources/run-after-display.js"></script>
<script>
if (window.testRunner)
testRunner.overridePreference("WebKitWebGLEnabled", "1");
@@ -37,11 +38,10 @@ function init()
gl.clearColor(1, 0, 0, 1); // red
gl.clear(gl.COLOR_BUFFER_BIT);
if (window.testRunner) {
- testRunner.display();
+ testRunner.waitUntilDone();
testRunner.dumpAsTextWithPixelResults();
- drawGreen();
- } else
- window.setTimeout(drawGreen, 50);
+ }
+ runAfterDisplay(drawGreen);
}
function drawGreen()
@@ -49,8 +49,7 @@ function drawGreen()
gl.clearColor(0, 1, 0, 1); // green
gl.clear(gl.COLOR_BUFFER_BIT);
if (window.testRunner) {
- testRunner.display();
- testRunner.display();
+ testRunner.notifyDone();
} else
window.setInterval(function() {
document.getElementById('canvas').classList.toggle('border');
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/css3/flexbox/repaint.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698