OLD | NEW |
(Empty) | |
| 1 Tests that the OffScreenCanvas can handle invalid arguments |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS canvas1.width is setWidth-1 |
| 7 PASS canvas1.height is setHeight-1 |
| 8 PASS canvas1.width is 0 |
| 9 PASS canvas1.height is 0 |
| 10 PASS OffScreenCanvas(-1, -1) throws an exception as expected: TypeError: Failed
to construct 'OffScreenCanvas': Value is outside the 'unsigned long' value range
. |
| 11 PASS canvas3.width is 0 |
| 12 PASS canvas3.height is 0 |
| 13 PASS canvas3.width is setWidth-1 |
| 14 PASS canvas3.height is setHeight-1 |
| 15 PASS Setting width to -1 throws an exception as expected: TypeError: Failed to s
et the 'width' property on 'OffScreenCanvas': Value is outside the 'unsigned lon
g' value range. |
| 16 PASS Setting width to an object throws an exception as expected: TypeError: Fail
ed to set the 'width' property on 'OffScreenCanvas': Value is not of type 'unsig
ned long'. |
| 17 PASS OffScreenCanvas(object, object) throws an exception as expected: TypeError:
Failed to construct 'OffScreenCanvas': Value is not of type 'unsigned long'. |
| 18 PASS successfullyParsed is true |
| 19 |
| 20 TEST COMPLETE |
| 21 |
OLD | NEW |