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 db257023ba73a8899164c48acaf9049930008fe5..ecaf5e6c8bd011056131638013a43619c9211eaa 100644 |
--- a/LayoutTests/fast/canvas/script-tests/canvas-path-context-fill.js |
+++ b/LayoutTests/fast/canvas/script-tests/canvas-path-context-fill.js |
@@ -53,7 +53,7 @@ function testFillWith(fillRule, path) { |
// Execute test. |
function prepareTestScenario() { |
fillRules = [undefined, 'nonzero', 'evenodd']; |
- var path = new Path2D(); |
+ path = new Path2D(); |
drawRectanglesOn(path); |
for (var i = 0; i < fillRules.length; i++) { |
@@ -70,6 +70,8 @@ function prepareTestScenario() { |
shouldThrow("ctx.fill(null, 'evenodd')"); |
shouldThrow("ctx.fill([], 'evenodd')"); |
shouldThrow("ctx.fill({}, 'evenodd')"); |
+ shouldThrow("ctx.fill('gazonk')"); |
+ shouldThrow("ctx.fill(path, 'gazonk')"); |
} |
// Run test and allow variation of results. |