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

Unified Diff: LayoutTests/paint/invalidation/spv2/canvas-putImageData-expected.html

Issue 1302183007: Convert some text-based-repaint tests for spv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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/paint/invalidation/spv2/canvas-putImageData-expected.html
diff --git a/LayoutTests/fast/repaint/canvas-putImageData.html b/LayoutTests/paint/invalidation/spv2/canvas-putImageData-expected.html
similarity index 58%
copy from LayoutTests/fast/repaint/canvas-putImageData.html
copy to LayoutTests/paint/invalidation/spv2/canvas-putImageData-expected.html
index 6d713bd8ae7664279bb25b05ee80be8ef28e92bf..bab19f00b55b9137d9e4a91265258ec80baa8b1c 100644
--- a/LayoutTests/fast/repaint/canvas-putImageData.html
+++ b/LayoutTests/paint/invalidation/spv2/canvas-putImageData-expected.html
@@ -1,6 +1,5 @@
<!-- Test for https://bugs.webkit.org/show_bug.cgi?id=46319 -->
<head>
- <script src="resources/text-based-repaint.js"></script>
</head>
<body>
<canvas id="canvas" width="100" height="100"></canvas>
@@ -23,19 +22,10 @@
ctx.fillRect(0, 0, 10, 10);
ctx.fillRect(40, 40, 10, 10);
ctx.fillRect(80, 80, 10, 10);
- window.testIsAsync = true;
-
- function repaintTest()
- {
- // patch up red squares with putImageData
- ctx.putImageData(imageDataGreen, 0, 0);
- ctx.putImageData(imageDataGreen, 40, 40);
- ctx.putImageData(imageDataRedWithInsetGreen, 70, 70, 10, 10, 10, 10);
- // Because canvas invalidations are processed at the end of the current task,
- // the repaint test has to end in a subsequent task in order to capture the repaint.
- setTimeout(finishRepaintTest, 0);
- }
- window.onload = runRepaintTest;
+ // patch up red squares with putImageData
+ ctx.putImageData(imageDataGreen, 0, 0);
+ ctx.putImageData(imageDataGreen, 40, 40);
+ ctx.putImageData(imageDataRedWithInsetGreen, 70, 70, 10, 10, 10, 10);
</script>
</body>
« no previous file with comments | « LayoutTests/paint/invalidation/spv2/canvas-putImageData.html ('k') | LayoutTests/paint/invalidation/spv2/canvas-resize.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698