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