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