| OLD | NEW |
| 1 Test canvas createImageData() | 1 Test canvas createImageData() |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 PASS ctx.createImageData(null) threw exception TypeError: Failed to execute 'cre
ateImageData' on 'CanvasRenderingContext2D': parameter 1 is not of type 'ImageDa
ta'.. | 6 PASS ctx.createImageData(null) threw exception TypeError: Failed to execute 'cre
ateImageData' on 'CanvasRenderingContext2D': parameter 1 is not of type 'ImageDa
ta'.. |
| 7 PASS ctx.createImageData(undefined) threw exception TypeError: Failed to execute
'createImageData' on 'CanvasRenderingContext2D': parameter 1 is not of type 'Im
ageData'.. |
| 8 PASS ctx.createImageData([]) threw exception TypeError: Failed to execute 'creat
eImageData' on 'CanvasRenderingContext2D': parameter 1 is not of type 'ImageData
'.. |
| 9 PASS ctx.createImageData({}) threw exception TypeError: Failed to execute 'creat
eImageData' on 'CanvasRenderingContext2D': parameter 1 is not of type 'ImageData
'.. |
| 7 PASS imageData.width is 100 | 10 PASS imageData.width is 100 |
| 8 PASS imageData.height is 50 | 11 PASS imageData.height is 50 |
| 9 PASS imageData.data[32] is 255 | 12 PASS imageData.data[32] is 255 |
| 10 PASS sameSizeImageData.width is 100 | 13 PASS sameSizeImageData.width is 100 |
| 11 PASS sameSizeImageData.height is 50 | 14 PASS sameSizeImageData.height is 50 |
| 12 PASS sameSizeImageData.data[32] is 0 | 15 PASS sameSizeImageData.data[32] is 0 |
| 13 PASS imgdata1.data.length is 800 | 16 PASS imgdata1.data.length is 800 |
| 14 PASS imgdata1.data.length is imgdata2.data.length | 17 PASS imgdata1.data.length is imgdata2.data.length |
| 15 PASS imgdata2.data.length is imgdata3.data.length | 18 PASS imgdata2.data.length is imgdata3.data.length |
| 16 PASS imgdata3.data.length is imgdata4.data.length | 19 PASS imgdata3.data.length is imgdata4.data.length |
| 17 PASS successfullyParsed is true | 20 PASS successfullyParsed is true |
| 18 | 21 |
| 19 TEST COMPLETE | 22 TEST COMPLETE |
| 20 | 23 |
| OLD | NEW |