tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / fast / canvas / script-tests / canvas-overloads-strokeRect.js
1 description("Test the behavior of CanvasRenderingContext2D.strokeRect() when called with different numbers of arguments.");
2
3 var ctx = document.createElement('canvas').getContext('2d');
4
5 var SyntaxError = "SyntaxError: Syntax error";
6 var TypeError = "TypeError: Type error";
7
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");