OLD | NEW |
| (Empty) |
1 description("Test the behavior of CanvasRenderingContext2D.setStrokeColor() when
called with different numbers of arguments."); | |
2 | |
3 var ctx = document.createElement('canvas').getContext('2d'); | |
4 | |
5 shouldThrow("ctx.setStrokeColor()"); | |
6 shouldBe("ctx.setStrokeColor('red')", "undefined"); | |
7 shouldBe("ctx.setStrokeColor(0)", "undefined"); | |
8 shouldBe("ctx.setStrokeColor(0, 0)", "undefined"); | |
9 shouldThrow("ctx.setStrokeColor(0, 0, 0)"); | |
10 shouldBe("ctx.setStrokeColor(0, 0, 0, 0)", "undefined"); | |
11 shouldBe("ctx.setStrokeColor(0, 0, 0, 0, 0)", "undefined"); | |
12 shouldBe("ctx.setStrokeColor(0, 0, 0, 0, 0, 0)", "undefined"); | |
OLD | NEW |