1 description("Test the behavior of CanvasRenderingContext2D.strokeRect() when called with different numbers of arguments.");
3 var ctx = document.createElement('canvas').getContext('2d');
5 var SyntaxError = "SyntaxError: Syntax error";
6 var TypeError = "TypeError: Type error";
8 shouldBe("ctx.strokeRect()", "undefined");
9 shouldBe("ctx.strokeRect(0)", "undefined");
10 shouldBe("ctx.strokeRect(0, 0)", "undefined");
11 shouldBe("ctx.strokeRect(0, 0, 0)", "undefined");
12 shouldBe("ctx.strokeRect(0, 0, 0, 0)", "undefined");
13 shouldBe("ctx.strokeRect(0, 0, 0, 0, 0)", "undefined");