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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-state-intact-after-putImageData.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-state-intact-after-putImageData.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-state-intact-after-putImageData.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-state-intact-after-putImageData.js
deleted file mode 100644
index 50282df36df37d52567821bf38ac95906ae34a52..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-state-intact-after-putImageData.js
+++ /dev/null
@@ -1,38 +0,0 @@
-description("Test that the rendering context state is intact after a call to putImageData()");
-var ctx = document.createElement('canvas').getContext('2d');
-
-ctx.fillStyle = 'red';
-ctx.fillRect(0, 0, 1, 1);
-
-debug("Checking initial state for sanity");
-var imageData = ctx.getImageData(0, 0, 2, 1);
-var imgdata = imageData.data;
-shouldBe("ctx.fillStyle", "'#ff0000'");
-shouldBe("imgdata[0]", "255");
-shouldBe("imgdata[1]", "0");
-shouldBe("imgdata[2]", "0");
-shouldBe("imgdata[3]", "255");
-shouldBe("imgdata[4]", "0");
-shouldBe("imgdata[5]", "0");
-shouldBe("imgdata[6]", "0");
-shouldBe("imgdata[7]", "0");
-
-debug("Calling putImageData()");
-ctx.putImageData(imageData, 1, 1);
-imageData = ctx.getImageData(1, 1, 1, 1);
-imgdata = imageData.data;
-shouldBe("imgdata[0]", "255");
-shouldBe("imgdata[1]", "0");
-shouldBe("imgdata[2]", "0");
-shouldBe("imgdata[3]", "255");
-
-debug("Checking if state is intact");
-shouldBe("ctx.fillStyle", "'#ff0000'");
-
-ctx.fillRect(2, 2, 1, 1);
-imageData = ctx.getImageData(2, 2, 1, 1);
-imgdata = imageData.data;
-shouldBe("imgdata[0]", "255");
-shouldBe("imgdata[1]", "0");
-shouldBe("imgdata[2]", "0");
-shouldBe("imgdata[3]", "255");

Powered by Google App Engine
This is Rietveld 408576698