| Index: LayoutTests/fast/canvas/script-tests/canvas-overloads-setFillColor.js
|
| diff --git a/LayoutTests/fast/canvas/script-tests/canvas-overloads-setFillColor.js b/LayoutTests/fast/canvas/script-tests/canvas-overloads-setFillColor.js
|
| index dfa6d0a1afcaa1b31cb159c052cd810afe1eff97..b2e5dfd44e14c09b26d08b44ebee5cd1b8188b49 100644
|
| --- a/LayoutTests/fast/canvas/script-tests/canvas-overloads-setFillColor.js
|
| +++ b/LayoutTests/fast/canvas/script-tests/canvas-overloads-setFillColor.js
|
| @@ -2,10 +2,13 @@ description("Test the behavior of CanvasRenderingContext2D.setFillColor() when c
|
|
|
| var ctx = document.createElement('canvas').getContext('2d');
|
|
|
| +function ExpectedNotEnoughArgumentsMessage(num) {
|
| + return "\"TypeError: Failed to execute 'setFillColor' on 'CanvasRenderingContext2D': 1 argument required, but only " + num + " present.\"";
|
| +}
|
| +
|
| var TypeError = "TypeError: Type error";
|
| -var TypeErrorNotEnoughArguments = "TypeError: Not enough arguments";
|
|
|
| -shouldThrow("ctx.setFillColor()", "TypeErrorNotEnoughArguments");
|
| +shouldThrow("ctx.setFillColor()", ExpectedNotEnoughArgumentsMessage(0));
|
| shouldBe("ctx.setFillColor('red')", "undefined");
|
| shouldBe("ctx.setFillColor(0)", "undefined");
|
| shouldBe("ctx.setFillColor(0, 0)", "undefined");
|
|
|