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

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

Issue 2693193003: 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-shadow.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-shadow.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-shadow.js
deleted file mode 100644
index 673d7c16f32251eff2ffeae825d264864240df6f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-shadow.js
+++ /dev/null
@@ -1,32 +0,0 @@
-description("Some tests for Canvas shadows");
-var ctx = document.createElement('canvas').getContext('2d');
-
-ctx.fillStyle = "green";
-ctx.fillRect(0,0,100,100);
-
-ctx.shadowColor = "green";
-ctx.shadowOffsetX = 0;
-ctx.shadowOffsetY = 0;
-ctx.shadowBlur = 0;
-
-var imageData = ctx.getImageData(0, 0, 200, 50);
-var imgdata = imageData.data;
-shouldBe("imgdata[4]", "0");
-shouldBe("imgdata[5]", "128");
-shouldBe("imgdata[6]", "0");
-
-ctx.clearRect(0,0,200,50);
-
-ctx.shadowColor = "green";
-ctx.shadowOffsetX = 100;
-ctx.shadowOffsetY = 0;
-ctx.shadowBlur = 2;
-
-ctx.fillStyle = "green";
-ctx.fillRect(0,0,100,50);
-
-imageData = ctx.getImageData(110, 10, 80, 30);
-imgdata = imageData.data;
-shouldBe("imgdata[4]", "0");
-shouldBe("imgdata[5]", "128");
-shouldBe("imgdata[6]", "0");

Powered by Google App Engine
This is Rietveld 408576698