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

Unified Diff: LayoutTests/fast/canvas/canvas-as-image-incremental-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
Index: LayoutTests/fast/canvas/canvas-as-image-incremental-repaint.html
diff --git a/LayoutTests/fast/canvas/canvas-as-image-incremental-repaint.html b/LayoutTests/fast/canvas/canvas-as-image-incremental-repaint.html
index e8ffc4da6e2706bfb47175ff70c1dcc51b55d062..ae2be134023a585751d951d45aceae0c8482b828 100644
--- a/LayoutTests/fast/canvas/canvas-as-image-incremental-repaint.html
+++ b/LayoutTests/fast/canvas/canvas-as-image-incremental-repaint.html
@@ -8,33 +8,11 @@
content: -webkit-canvas(squares);
}
</style>
-
+ <script src="resources/repaint.js"></script>
<script type="application/x-javascript">
- if (window.testRunner)
- testRunner.waitUntilDone();
-
- var canvasContext;
- function runRepaintTest()
- {
- canvasContext = document.getCSSCanvasContext("2d", "squares", 300, 300);
- if (window.testRunner) {
- document.body.offsetTop;
- testRunner.display();
- repaintTest();
- testRunner.notifyDone();
- } else {
- setTimeout(repaintTest, 2000);
- }
- }
-
function repaintTest()
{
- draw();
- }
-
- function draw()
- {
- var ctx = canvasContext;
+ var ctx = document.getCSSCanvasContext("2d", "squares", 300, 300);
ctx.fillStyle = "rgb(200,0,0)";
ctx.fillRect (10, 10, 100, 100);
@@ -47,4 +25,4 @@
<body onload="runRepaintTest()">
<div></div>
</body>
-</html>
+</html>
« no previous file with comments | « LayoutTests/css3/flexbox/repaint-rtl-column.html ('k') | LayoutTests/fast/canvas/canvas-incremental-repaint.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698