Index: LayoutTests/fast/canvas/script-tests/canvas-getContext-invalid.js |
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-getContext-invalid.js b/LayoutTests/fast/canvas/script-tests/canvas-getContext-invalid.js |
index b957468524408c17633e729a1b70225080dfd3e0..dec12679ad24d825856905bb1fe137784ae253ed 100644 |
--- a/LayoutTests/fast/canvas/script-tests/canvas-getContext-invalid.js |
+++ b/LayoutTests/fast/canvas/script-tests/canvas-getContext-invalid.js |
@@ -8,3 +8,6 @@ shouldBe("canvas.getContext('This is clearly not a valid context name.')", "null |
shouldBe("canvas.getContext('2d\0')", "null"); |
shouldBe("canvas.getContext('2\uFF44')", "null"); |
shouldBe("canvas.getContext('2D')", "null"); |
+shouldThrow("canvas.getContext()"); |
+shouldBe("canvas.getContext('null')", "null"); |
+shouldBe("canvas.getContext('undefined')", "null"); |