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