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

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

Issue 2675763005: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Corrections 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-clearRect.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-clearRect.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-clearRect.js
deleted file mode 100644
index 61f4633587c0f0700e8c77b47aaba1aae03543f3..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-clearRect.js
+++ /dev/null
@@ -1,44 +0,0 @@
-description("Series of tests to ensure correct behavior of canvas.clearRect().");
-var ctx = document.createElement('canvas').getContext('2d');
-
-// Clear rect with height = width = 0.
-debug("Test canvas.clearRect() with height = width = 0.");
-ctx.fillStyle = 'red';
-ctx.fillRect(0, 0, 1, 1);
-ctx.clearRect(0, 0, 0, 0);
-
-var imageData = ctx.getImageData(0, 0, 1, 1);
-var imgdata = imageData.data;
-shouldBe("imgdata[0]", "255");
-shouldBe("imgdata[1]", "0");
-shouldBe("imgdata[2]", "0");
-
-ctx.clearRect(0, 0, 1, 1);
-
-// Clear rect with height = 0, width = 1.
-debug("Test canvas.clearRect() with height = 0, width = 1.");
-ctx.fillStyle = 'red';
-ctx.fillRect(0, 0, 1, 1);
-ctx.clearRect(0, 0, 1, 0);
-
-var imageData = ctx.getImageData(0, 0, 1, 1);
-var imgdata = imageData.data;
-shouldBe("imgdata[0]", "255");
-shouldBe("imgdata[1]", "0");
-shouldBe("imgdata[2]", "0");
-
-ctx.clearRect(0, 0, 1, 1);
-
-// Clear rect with height = 1, width = 0.
-debug("Test canvas.clearRect() with height = 1, width = 0.");
-ctx.fillStyle = 'red';
-ctx.fillRect(0, 0, 1, 1);
-ctx.clearRect(0, 0, 0, 1);
-
-var imageData = ctx.getImageData(0, 0, 1, 1);
-var imgdata = imageData.data;
-shouldBe("imgdata[0]", "255");
-shouldBe("imgdata[1]", "0");
-shouldBe("imgdata[2]", "0");
-
-ctx.clearRect(0, 0, 1, 1);

Powered by Google App Engine
This is Rietveld 408576698