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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-pattern-transform.js

Issue 2689243002: 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/canvas-pattern-transform.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-pattern-transform.js b/third_party/WebKit/LayoutTests/fast/canvas/canvas-pattern-transform.js
deleted file mode 100644
index 49d86287af7e70b33ab4ceea7df30e5464b43a76..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-pattern-transform.js
+++ /dev/null
@@ -1,43 +0,0 @@
-description("Series of tests to ensure correct behaviour on transform of a pattern");
-var canvas2 = document.createElement('canvas');
-canvas2.width = 100;
-canvas2.height = 100;
-var ctx2 = canvas2.getContext('2d');
-ctx2.fillStyle = '#0f0';
-ctx2.fillRect(0, 0, 50, 50);
-ctx2.fillRect(50, 50, 50, 50);
-ctx2.fillStyle = '#f00';
-ctx2.fillRect(50, 0, 50, 50);
-ctx2.fillRect(0, 50, 50, 50);
-
-var ctx = document.createElement('canvas').getContext('2d');
-
-ctx.save();
-ctx.transform(2, 0, 0, 2, 0, 0);
-var pattern = ctx.createPattern(canvas2, 'repeat');
-ctx.fillStyle = pattern;
-ctx.fillRect(0,0,100,100);
-ctx.restore();
-
-ctx.save();
-ctx.transform(0.5, 0, 0, 0.5, 0, 0);
-pattern = ctx.createPattern(canvas2, 'repeat');
-ctx.fillStyle = pattern;
-ctx.fillRect(0,0,100,100);
-ctx.restore();
-
-var imageData = ctx.getImageData(26, 26, 74, 74);
-var imgdata = imageData.data;
-shouldBe("imgdata[4]", "0");
-shouldBe("imgdata[5]", "255");
-shouldBe("imgdata[6]", "0");
-imageData = ctx.getImageData(25, 0, 25, 25);
-imgdata = imageData.data;
-shouldBe("imgdata[4]", "255");
-shouldBe("imgdata[5]", "0");
-shouldBe("imgdata[6]", "0");
-imageData = ctx.getImageData(0, 0, 25, 25);
-imgdata = imageData.data;
-shouldBe("imgdata[4]", "0");
-shouldBe("imgdata[5]", "255");
-shouldBe("imgdata[6]", "0");

Powered by Google App Engine
This is Rietveld 408576698