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

Unified Diff: LayoutTests/fast/canvas/canvas-incremental-repaint-2.html

Issue 207383002: Remove repaint.js from layout tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More 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
Index: LayoutTests/fast/canvas/canvas-incremental-repaint-2.html
diff --git a/LayoutTests/fast/canvas/canvas-incremental-repaint-2.html b/LayoutTests/fast/canvas/canvas-incremental-repaint-2.html
index 8ced65a5f82f8d7d8be94fffffbfc445365dff78..cf1add279a86fdbfbaf5b60232b6db4f3a420a5f 100644
--- a/LayoutTests/fast/canvas/canvas-incremental-repaint-2.html
+++ b/LayoutTests/fast/canvas/canvas-incremental-repaint-2.html
@@ -10,11 +10,12 @@
border: 20px solid black;
}
</style>
- <script src="resources/repaint.js"></script>
+ <script src="../../resources/run-after-display.js"></script>
<script type="text/javascript" charset="utf-8">
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
+ testRunner.waitUntilDone();
}
function repaintTest()
@@ -23,18 +24,19 @@
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'green';
-
ctx.save();
ctx.setTransform(1, 0, 0, 1, 50, 200);
// Test the the transform applies the matrix in the correct order.
ctx.transform(1, 0, 0, -1, 0, 0);
ctx.fillRect(0, 100, 200, 80);
ctx.restore();
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
}
-
</script>
</head>
-<body onload="runRepaintTest()">
+<body onload="runAfterDisplay(repaintTest)">
<canvas id="canvas1"></canvas>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698