OLD | NEW |
| (Empty) |
1 description("Test the handling of invalid arguments in canvas getImageData()."); | |
2 | |
3 ctx = document.createElement('canvas').getContext('2d'); | |
4 | |
5 shouldThrow("ctx.getImageData(NaN, 10, 10, 10)"); | |
6 shouldThrow("ctx.getImageData(10, NaN, 10, 10)"); | |
7 shouldThrow("ctx.getImageData(10, 10, NaN, 10)"); | |
8 shouldThrow("ctx.getImageData(10, 10, 10, NaN)"); | |
9 shouldThrow("ctx.getImageData(Infinity, 10, 10, 10)"); | |
10 shouldThrow("ctx.getImageData(10, Infinity, 10, 10)"); | |
11 shouldThrow("ctx.getImageData(10, 10, Infinity, 10)"); | |
12 shouldThrow("ctx.getImageData(10, 10, 10, Infinity)"); | |
13 shouldThrow("ctx.getImageData(undefined, 10, 10, 10)"); | |
14 shouldThrow("ctx.getImageData(10, undefined, 10, 10)"); | |
15 shouldThrow("ctx.getImageData(10, 10, undefined, 10)"); | |
16 shouldThrow("ctx.getImageData(10, 10, 10, undefined)"); | |
17 shouldThrow("ctx.getImageData(10, 10, 0, 10)"); | |
18 shouldThrow("ctx.getImageData(10, 10, 10, 0)"); | |
OLD | NEW |