Index: LayoutTests/fast/canvas/script-tests/canvas-overloads-strokeRect.js |
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-overloads-strokeRect.js b/LayoutTests/fast/canvas/script-tests/canvas-overloads-strokeRect.js |
index 3d6b18a1d502a347549cdb6cdb89d18765e58591..d7bbd7c63fdf6c75ee03f606823606971829b480 100644 |
--- a/LayoutTests/fast/canvas/script-tests/canvas-overloads-strokeRect.js |
+++ b/LayoutTests/fast/canvas/script-tests/canvas-overloads-strokeRect.js |
@@ -2,12 +2,11 @@ description("Test the behavior of CanvasRenderingContext2D.strokeRect() when cal |
var ctx = document.createElement('canvas').getContext('2d'); |
-var SyntaxError = "SyntaxError: Syntax error"; |
-var TypeError = "TypeError: Type error"; |
+var TypeErrorNotEnoughArguments = "TypeError: Not enough arguments"; |
-shouldBe("ctx.strokeRect()", "undefined"); |
-shouldBe("ctx.strokeRect(0)", "undefined"); |
-shouldBe("ctx.strokeRect(0, 0)", "undefined"); |
-shouldBe("ctx.strokeRect(0, 0, 0)", "undefined"); |
+shouldThrow("ctx.strokeRect()", "TypeErrorNotEnoughArguments"); |
+shouldThrow("ctx.strokeRect(0)", "TypeErrorNotEnoughArguments"); |
+shouldThrow("ctx.strokeRect(0, 0)", "TypeErrorNotEnoughArguments"); |
+shouldThrow("ctx.strokeRect(0, 0, 0)", "TypeErrorNotEnoughArguments"); |
shouldBe("ctx.strokeRect(0, 0, 0, 0)", "undefined"); |
shouldBe("ctx.strokeRect(0, 0, 0, 0, 0)", "undefined"); |