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 |