Index: LayoutTests/fast/canvas/script-tests/canvas-path-context-fill.js |
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-path-context-fill.js b/LayoutTests/fast/canvas/script-tests/canvas-path-context-fill.js |
index ecaf5e6c8bd011056131638013a43619c9211eaa..71b1f849e422c8f61835779a5010c58649c72d38 100644 |
--- a/LayoutTests/fast/canvas/script-tests/canvas-path-context-fill.js |
+++ b/LayoutTests/fast/canvas/script-tests/canvas-path-context-fill.js |
@@ -65,6 +65,7 @@ function prepareTestScenario() { |
shouldThrow("ctx.fill(null)"); |
shouldThrow("ctx.fill(null, null)"); |
shouldThrow("ctx.fill(null, 'nonzero')"); |
+ shouldThrow("ctx.fill(path, null)"); |
shouldThrow("ctx.fill([], 'nonzero')"); |
shouldThrow("ctx.fill({}, 'nonzero')"); |
shouldThrow("ctx.fill(null, 'evenodd')"); |
@@ -72,6 +73,10 @@ function prepareTestScenario() { |
shouldThrow("ctx.fill({}, 'evenodd')"); |
shouldThrow("ctx.fill('gazonk')"); |
shouldThrow("ctx.fill(path, 'gazonk')"); |
+ shouldThrow("ctx.fill(undefined)"); |
+ shouldThrow("ctx.fill(undefined, undefined)"); |
+ shouldThrow("ctx.fill(undefined, path)"); |
+ shouldThrow("ctx.fill(path, undefined)"); |
} |
// Run test and allow variation of results. |