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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-createImageData.js

Issue 289283002: Add some layout tests about behavior on undefined and null. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 7 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: LayoutTests/fast/canvas/script-tests/canvas-createImageData.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-createImageData.js b/LayoutTests/fast/canvas/script-tests/canvas-createImageData.js
index c2bbb976e56b0641444320bb14b374c5b146ee9b..ff601d1d5887d7ca4141e67acb7012b7108c7eda 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-createImageData.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-createImageData.js
@@ -3,6 +3,9 @@ description("Test canvas createImageData()");
ctx = document.createElement('canvas').getContext('2d');
shouldThrow("ctx.createImageData(null)");
+shouldThrow("ctx.createImageData(undefined)");
+shouldThrow("ctx.createImageData([])");
+shouldThrow("ctx.createImageData({})");
// create a 100x50 imagedata and fill it with white pixels

Powered by Google App Engine
This is Rietveld 408576698