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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-copyPixels.js

Issue 2675763005: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Addressing comments 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/script-tests/canvas-copyPixels.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-copyPixels.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-copyPixels.js
deleted file mode 100644
index d7d2d9fd702eb1c1debe109293f3776e8e081b9e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-copyPixels.js
+++ /dev/null
@@ -1,30 +0,0 @@
-description("Test if putImageData gives back the same result as getImageData");
-var ctx = document.createElement('canvas').getContext('2d');
-
-ctx.fillStyle = "red";
-ctx.fillRect(0,0,50,20);
-ctx.fillStyle = "green";
-ctx.fillRect(50,0,50,20);
-ctx.fillStyle = "blue";
-ctx.fillRect(100,0,50,20);
-
-var data = ctx.getImageData(0,0,150,20);
-ctx.putImageData(data, 0, 20);
-
-var imageData = ctx.getImageData(1, 21, 48, 18);
-var imgdata = imageData.data;
-shouldBe("imgdata[4]", "255");
-shouldBe("imgdata[5]", "0");
-shouldBe("imgdata[6]", "0");
-
-imageData = ctx.getImageData(51, 21, 48, 18);
-imgdata = imageData.data;
-shouldBe("imgdata[4]", "0");
-shouldBe("imgdata[5]", "128");
-shouldBe("imgdata[6]", "0");
-
-imageData = ctx.getImageData(101, 21, 48, 18);
-imgdata = imageData.data;
-shouldBe("imgdata[4]", "0");
-shouldBe("imgdata[5]", "0");
-shouldBe("imgdata[6]", "255");

Powered by Google App Engine
This is Rietveld 408576698