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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-closePath-single-point.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-closePath-single-point.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-closePath-single-point.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-closePath-single-point.js
deleted file mode 100644
index 008a8f509b55d3534d660d57d9a666b6d9a7883a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-closePath-single-point.js
+++ /dev/null
@@ -1,23 +0,0 @@
-description("Test the behavior of closePath on a path with a single point");
-var ctx = document.createElement('canvas').getContext('2d');
-
-document.body.appendChild(ctx.canvas);
-
-ctx.strokeStyle = '#f00';
-ctx.lineWidth = 20;
-
-ctx.fillStyle = '#0f0';
-ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
-
-ctx.beginPath();
-ctx.moveTo(10, 10);
-ctx.lineTo(100, 100);
-ctx.closePath();
-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");
-shouldBe("imgdata[3]", "255");

Powered by Google App Engine
This is Rietveld 408576698