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