Index: LayoutTests/fast/canvas/canvas-putImageData.js |
diff --git a/LayoutTests/fast/canvas/canvas-putImageData.js b/LayoutTests/fast/canvas/canvas-putImageData.js |
index 97f351081c53ae8ed7f55de36c120deaca9d7a8b..b273f92b65f4212a381378c2262b382ce117252a 100644 |
--- a/LayoutTests/fast/canvas/canvas-putImageData.js |
+++ b/LayoutTests/fast/canvas/canvas-putImageData.js |
@@ -220,6 +220,8 @@ shouldThrow("context.putImageData(buffer, 0, 0, undefined, 0, 0, 0)"); |
shouldThrow("context.putImageData(buffer, 0, 0, 0, undefined, 0, 0)"); |
shouldThrow("context.putImageData(buffer, 0, 0, 0, 0, undefined, 0)"); |
shouldThrow("context.putImageData(buffer, 0, 0, 0, 0, 0, undefined)"); |
+shouldThrow("context.putImageData(null, 0, 0, 0, 0, 0, 0)"); |
+shouldThrow("context.putImageData(undefined, 0, 0, 0, 0, 0, 0)"); |
// Ensure we don't mess up bounds clipping checks |
var rectcanvas = document.createElement("canvas"); |