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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-alphaImageData-behavior.js

Issue 2671853004: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Corrections Created 3 years, 10 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/fast/canvas/canvas-alphaImageData-behavior.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-alphaImageData-behavior.js b/third_party/WebKit/LayoutTests/fast/canvas/canvas-alphaImageData-behavior.js
deleted file mode 100644
index 77b521f9806beb73f6da6c4e7101119b1a5109a6..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-alphaImageData-behavior.js
+++ /dev/null
@@ -1,21 +0,0 @@
-description("Series of tests to ensure correct behaviour of getImageData and putImageData when alpha is involved");
-var ctx = document.getElementById('canvas').getContext('2d');
-ctx.fillStyle = 'rgba(255, 0, 0, 0.01)';
-ctx.fillRect(0, 0, 1, 200);
-ctx.fillStyle = 'rgba(0, 255, 0, 0.995)';
-ctx.fillRect(1, 0, 199, 200);
-var imageData = ctx.getImageData(0, 0, 200, 200);
-var imgdata = imageData.data;
-shouldBe("imgdata[4]", "0");
-shouldBe("imgdata[5]", "255");
-shouldBe("imgdata[6]", "0");
-shouldBe("imgdata[7]", "254");
-
-ctx.putImageData(imageData, 0, 0);
-
-imgdata = ctx.getImageData(0, 0, 200, 200).data;
-
-shouldBe("imgdata[4]", "0");
-shouldBe("imgdata[5]", "255");
-shouldBe("imgdata[6]", "0");
-shouldBe("imgdata[7]", "254");

Powered by Google App Engine
This is Rietveld 408576698