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

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

Issue 2010243002: Remove paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/LayoutTests/paint/invalidation/spv2/canvas-putImageData.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/spv2/canvas-putImageData.html b/third_party/WebKit/LayoutTests/paint/invalidation/spv2/canvas-putImageData.html
deleted file mode 100644
index ce0a545d038a9257e0755885e1ba54e669861a47..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/paint/invalidation/spv2/canvas-putImageData.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!-- Based on fast/repaint/canvas-putImageData.html -->
-<!-- Test for https://bugs.webkit.org/show_bug.cgi?id=46319 -->
-<head>
- <script src="resources/paint-invalidation-test.js"></script>
-</head>
-<body>
- <canvas id="canvas" width="100" height="100"></canvas>
- <script>
- var canvas = document.getElementById('canvas');
- var ctx = canvas.getContext('2d');
-
- // prepare imagedata
- ctx.fillStyle = "rgb(255, 0, 0)"; ctx.fillRect(0, 0, 100, 100); // red background
- ctx.fillStyle = "rgb(0, 255, 0)"; ctx.fillRect(10, 10, 10, 10); // inset green square
- var imageDataGreen = ctx.getImageData(10, 10, 10, 10);
- var imageDataRedWithInsetGreen = ctx.getImageData(0, 0, 30, 30);
-
- // clear canvas to dark green
- ctx.fillStyle = "rgb(0, 128, 0)";
- ctx.fillRect(0, 0, 100, 100);
-
- // fill target locations with dark red
- ctx.fillStyle = "rgb(128, 0, 0)";
- ctx.fillRect(0, 0, 10, 10);
- ctx.fillRect(40, 40, 10, 10);
- ctx.fillRect(80, 80, 10, 10);
- window.testIsAsync = true;
-
- function paintInvalidationTest()
- {
- // 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(finishPaintInvalidationTest, 0);
- }
-
- window.onload = runPaintInvalidationTest;
- </script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698