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 1b8ac801299846179071dd3927997bad645b0fff..ed017af3e53e4e229c76089b7f2da78d87510e4e 100644 |
--- a/LayoutTests/fast/canvas/script-tests/canvas-overloads-setStrokeColor.js |
+++ b/LayoutTests/fast/canvas/script-tests/canvas-overloads-setStrokeColor.js |
@@ -2,17 +2,11 @@ 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: Failed to execute \'setStrokeColor\' on \'CanvasRenderingContext2D\': No function was found that matched the signature provided."'; |
- |
-shouldThrow("ctx.setStrokeColor()", ExpectedNotEnoughArgumentsMessage(0)); |
+shouldThrow("ctx.setStrokeColor()"); |
shouldBe("ctx.setStrokeColor('red')", "undefined"); |
shouldBe("ctx.setStrokeColor(0)", "undefined"); |
shouldBe("ctx.setStrokeColor(0, 0)", "undefined"); |
-shouldThrow("ctx.setStrokeColor(0, 0, 0)", "TypeError"); |
+shouldThrow("ctx.setStrokeColor(0, 0, 0)"); |
shouldBe("ctx.setStrokeColor(0, 0, 0, 0)", "undefined"); |
shouldBe("ctx.setStrokeColor(0, 0, 0, 0, 0)", "undefined"); |
-shouldThrow("ctx.setStrokeColor(0, 0, 0, 0, 0, 0)", "TypeError"); |
+shouldThrow("ctx.setStrokeColor(0, 0, 0, 0, 0, 0)"); |