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

Unified Diff: LayoutTests/fast/canvas/resources/canvas-ImageData.js

Issue 871563003: Fix ImageData constructor infelicity. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « LayoutTests/fast/canvas/canvas-ImageData-workers-expected.txt ('k') | Source/core/html/ImageData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/canvas/resources/canvas-ImageData.js
diff --git a/LayoutTests/fast/canvas/resources/canvas-ImageData.js b/LayoutTests/fast/canvas/resources/canvas-ImageData.js
index bc9568b13374c10745e183cc84aa7c52d2de1ba4..bf866862b15d6f72e352ea04387dae2748b72a96 100644
--- a/LayoutTests/fast/canvas/resources/canvas-ImageData.js
+++ b/LayoutTests/fast/canvas/resources/canvas-ImageData.js
@@ -41,12 +41,16 @@ shouldThrow("new ImageData(1 << 31, 1 << 31)");
shouldThrow("new ImageData(new Uint8ClampedArray(0))");
shouldThrow("new ImageData(new Uint8Array(100), 25)");
shouldThrow("new ImageData(new Uint8ClampedArray(27), 2)");
+shouldThrow("new ImageData(new Uint8ClampedArray(28), 7, 0)");
shouldThrow("new ImageData(new Uint8ClampedArray(104), 14)");
+shouldThrow("new ImageData(self, 4, 4)");
+shouldThrow("new ImageData(null, 4, 4)");
shouldThrow("new ImageData(imageData.data, 0)");
shouldThrow("new ImageData(imageData.data, 13)");
shouldThrow("new ImageData(imageData.data, 1 << 31)");
shouldThrow("new ImageData(imageData.data, 'biggish')");
shouldThrow("new ImageData(imageData.data, 1 << 24, 1 << 31)");
+shouldBe("(new ImageData(new Uint8ClampedArray(28), 7)).height", "1");
imageDataFromData = new ImageData(imageData.data, 100);
shouldBe("imageDataFromData.width", "100");
« no previous file with comments | « LayoutTests/fast/canvas/canvas-ImageData-workers-expected.txt ('k') | Source/core/html/ImageData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698