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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-gradient-without-path.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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-getImageData-negative-source.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-gradient-without-path.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-gradient-without-path.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-gradient-without-path.js
deleted file mode 100644
index 812199e308b8be1c00844a8eb924bb5234edeaff..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-gradient-without-path.js
+++ /dev/null
@@ -1,31 +0,0 @@
-description("Series of tests to ensure that no gradient is drawn without path");
-var ctx = document.createElement('canvas').getContext('2d');
-
-ctx.fillStyle = 'green';
-ctx.fillRect(0, 0, 100, 100);
-
-var gradient = ctx.createLinearGradient(0, 0, 0, 100);
-gradient.addColorStop(1, 'red');
-ctx.fillStyle = gradient;
-
-ctx.fill();
-
-var imageData = ctx.getImageData(1, 1, 98, 98);
-var imgdata = imageData.data;
-shouldBe("imgdata[4]", "0");
-shouldBe("imgdata[5]", "128");
-shouldBe("imgdata[6]", "0");
-
-ctx.strokeStyle = 'green';
-ctx.lineWidth = 100;
-ctx.strokeRect(50, 0, 100, 100);
-
-ctx.strokeStyle = gradient;
-
-ctx.stroke();
-
-imageData = ctx.getImageData(1, 1, 98, 98);
-imgdata = imageData.data;
-shouldBe("imgdata[4]", "0");
-shouldBe("imgdata[5]", "128");
-shouldBe("imgdata[6]", "0");
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-getImageData-negative-source.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698