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

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

Issue 2694703004: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: 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-path-addpath.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-path-constructors.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-path-constructors.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-path-constructors.js
deleted file mode 100644
index 1df7357bea75675477c45ee71b9dec35d9f5d2d3..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-path-constructors.js
+++ /dev/null
@@ -1,44 +0,0 @@
-description("Test different constructors of Path.");
-var ctx = document.createElement('canvas').getContext('2d');
-
-debug("Test constructor Path().")
-ctx.beginPath();
-var p1 = new Path2D();
-p1.rect(0,0,100,100);
-ctx.fillStyle = 'yellow';
-ctx.fill(p1);
-var imageData = ctx.getImageData(0, 0, 100, 100);
-var imgdata = imageData.data;
-shouldBe("imgdata[4]", "255");
-shouldBe("imgdata[5]", "255");
-shouldBe("imgdata[6]", "0");
-shouldBe("imgdata[7]", "255");
-debug("");
-
-debug("Test constructor Path(DOMString) which takes a SVG data string.")
-ctx.beginPath();
-var p2 = new Path2D("M100,0L200,0L200,100L100,100z");
-ctx.fillStyle = 'blue';
-ctx.fill(p2);
-imageData = ctx.getImageData(100, 0, 100, 100);
-imgdata = imageData.data;
-shouldBe("imgdata[4]", "0");
-shouldBe("imgdata[5]", "0");
-shouldBe("imgdata[6]", "255");
-shouldBe("imgdata[7]", "255");
-debug("");
-
-debug("Test constructor Path(Path) which takes another Path object.")
-ctx.beginPath();
-var p3 = new Path2D(p1);
-ctx.translate(200,0);
-ctx.fillStyle = 'green';
-ctx.fill(p3);
-ctx.translate(-200,0);
-imageData = ctx.getImageData(200, 0, 100, 100);
-imgdata = imageData.data;
-shouldBe("imgdata[4]", "0");
-shouldBe("imgdata[5]", "128");
-shouldBe("imgdata[6]", "0");
-shouldBe("imgdata[7]", "255");
-debug("");
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-path-addpath.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698