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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-strokeText-strokes-shadow.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-strokeText-strokes-shadow.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-strokeText-strokes-shadow.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-strokeText-strokes-shadow.js
deleted file mode 100644
index ec0887e54c6e8868f077a3a9cf84710266c9bb89..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-strokeText-strokes-shadow.js
+++ /dev/null
@@ -1,21 +0,0 @@
-description("Test that strokeText() doesn't produce a filled shadow.");
-var ctx = document.createElement('canvas').getContext('2d');
-
-ctx.fillStyle = 'green';
-ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height);
-
-// Stroke an 'I' with its shadow in the upper left corner.
-ctx.strokeStyle = 'white';
-ctx.lineWidth = 2;
-ctx.shadowColor = 'red';
-ctx.shadowOffsetX = -15;
-ctx.shadowOffsetY = 0;
-ctx.font = '128px sans-serif';
-ctx.strokeText("I", 0, 50);
-
-imageData = ctx.getImageData(0, 0, 1, 1);
-imgdata = imageData.data;
-shouldBe("imgdata[0]", "0");
-shouldBe("imgdata[1]", "128");
-shouldBe("imgdata[2]", "0");
-shouldBe("imgdata[3]", "255");

Powered by Google App Engine
This is Rietveld 408576698