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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-arc-connecting-line.js

Issue 2670353002: 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-arc-connecting-line.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-arc-connecting-line.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-arc-connecting-line.js
deleted file mode 100644
index 0ffca0b3084f341ab157adccd4f7b528669b641e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-arc-connecting-line.js
+++ /dev/null
@@ -1,33 +0,0 @@
-description("Test that canvas arc()s are connected by a straight line. There should be two C-shapes with a line from the bottom of the left one to the top of the right one.");
-
-var canvas = document.createElement('canvas');
-document.body.appendChild(canvas)
-canvas.setAttribute('width', '300');
-canvas.setAttribute('height', '300');
-var ctx = canvas.getContext('2d');
-ctx.fillStyle = '#0f0';
-ctx.fillRect(0, 0, canvas.width, canvas.height);
-ctx.lineJoin = 'bevel';
-ctx.lineWidth = 12;
-ctx.beginPath();
-ctx.arc(200, 50, 40, Math.PI / 2, -Math.PI / 2, false);
-ctx.arc(100, 50, 40, Math.PI / 2, -Math.PI / 2, false);
-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");
-
-imageData = ctx.getImageData(125, 30, 1, 1);
-imgdata = imageData.data;
-shouldBe("imgdata[0]", "0");
-shouldBe("imgdata[1]", "255");
-shouldBe("imgdata[2]", "0");
-
-imageData = ctx.getImageData(125, 70, 1, 1);
-imgdata = imageData.data;
-shouldBe("imgdata[0]", "0");
-shouldBe("imgdata[1]", "0");
-shouldBe("imgdata[2]", "0");

Powered by Google App Engine
This is Rietveld 408576698