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

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

Issue 2690183006: 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-stroke-zeroSizeGradient.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-stroke-zeroSizeGradient.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-stroke-zeroSizeGradient.js
deleted file mode 100644
index febdf1e8be8eac2b5fecb5075f5a217f51fa572b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-stroke-zeroSizeGradient.js
+++ /dev/null
@@ -1,18 +0,0 @@
-description("Series of tests to ensure that stroke() paints nothing on canvas when the strokeStyle is set to a zero-size gradient.");
-var ctx = document.createElement('canvas').getContext('2d');
-
-ctx.fillStyle = '#0f0';
-ctx.fillRect(0, 0, 1, 1);
-
-var g = ctx.createLinearGradient(0, 0, 0, 0); // zero-length line (undefined direction);
-g.addColorStop(0, '#f00');
-g.addColorStop(1, '#f00');
-ctx.strokeStyle = g;
-ctx.rect(0, 0, 1 ,1);
-ctx.stroke();
-
-var imageData = ctx.getImageData(0, 0, 1, 1);
-var imgdata = imageData.data;
-shouldBe("imgdata[0]", "0");
-shouldBe("imgdata[1]", "255");
-shouldBe("imgdata[2]", "0");

Powered by Google App Engine
This is Rietveld 408576698