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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-getImageData-negative-source.js

Issue 2674933002: 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/script-tests/canvas-getImageData-negative-source.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-getImageData-negative-source.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-getImageData-negative-source.js
deleted file mode 100644
index b6c201c828b3f9a82706405c14f0fd0f90fb5fe4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-getImageData-negative-source.js
+++ /dev/null
@@ -1,29 +0,0 @@
-description("Test the handling of negative sourceRect offset in getImageData().");
-
-ctx = document.createElement('canvas').getContext('2d');
-
-ctx.fillStyle = 'red';
-ctx.fillRect(0, 0, 100, 100);
-ctx.fillStyle = 'green';
-ctx.fillRect(0, 0, 6, 6);
-
-var imageData = ctx.getImageData(-10, 0, 100, 1);
-var imgdata = imageData.data;
-
-// Fully transparent black
-shouldBe("imgdata[0]", "0");
-shouldBe("imgdata[1]", "0");
-shouldBe("imgdata[2]", "0");
-shouldBe("imgdata[3]", "0");
-
-// Green
-shouldBe("imgdata[60]", "0");
-shouldBe("imgdata[61]", "128");
-shouldBe("imgdata[62]", "0");
-shouldBe("imgdata[63]", "255");
-
-// Red
-shouldBe("imgdata[64]", "255");
-shouldBe("imgdata[65]", "0");
-shouldBe("imgdata[66]", "0");
-shouldBe("imgdata[67]", "255");

Powered by Google App Engine
This is Rietveld 408576698