Index: LayoutTests/fast/canvas/canvas-pattern-behaviour.js |
diff --git a/LayoutTests/fast/canvas/canvas-pattern-behaviour.js b/LayoutTests/fast/canvas/canvas-pattern-behaviour.js |
index a476571334fba9bf261497124defaff686ab12e7..8d6f3a5bb18d6d6b8d95beadd1bb9b8316e75340 100644 |
--- a/LayoutTests/fast/canvas/canvas-pattern-behaviour.js |
+++ b/LayoutTests/fast/canvas/canvas-pattern-behaviour.js |
@@ -68,6 +68,18 @@ var tests = [ |
shouldThrow("context.createPattern(green1x1, {toString:function(){ return null;}})"); |
}, |
function () { |
+ shouldThrow("context.createPattern(null, '')"); |
+ }, |
+ function () { |
+ shouldThrow("context.createPattern(undefined, '')"); |
+ }, |
+ function () { |
+ shouldThrow("context.createPattern({}, '')"); |
+ }, |
+ function () { |
+ shouldThrow("context.createPattern([], '')"); |
+ }, |
+ function () { |
var didThrow = false; |
try { |
var pattern = context.createPattern(green1x1, ''); |