| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 [Worker] Test ImageData constructor | 
|  | 2 | 
|  | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
    ". | 
|  | 4 | 
|  | 5 | 
|  | 6 Starting worker: ./resources/canvas-ImageData-workers.js | 
|  | 7 PASS [Worker] ImageData is defined. | 
|  | 8 PASS [Worker] ImageData.length is 2 | 
|  | 9 PASS [Worker] imageData is non-null. | 
|  | 10 PASS [Worker] imageData.data is non-null. | 
|  | 11 PASS [Worker] imageData.width is 100 | 
|  | 12 PASS [Worker] imageData.height is 50 | 
|  | 13 PASS [Worker] getRGBA(imageData.data, 4) is [0, 0, 0, 0] | 
|  | 14 PASS [Worker] getRGBA(imageData.data, 4) is testColor | 
|  | 15 PASS [Worker] new ImageData(10) threw exception TypeError: Failed to construct '
    ImageData': 2 arguments required, but only 1 present.. | 
|  | 16 PASS [Worker] new ImageData(0, 10) threw exception IndexSizeError: Failed to con
    struct 'ImageData': The source width is zero or not a number.. | 
|  | 17 PASS [Worker] new ImageData(10, 0) threw exception IndexSizeError: Failed to con
    struct 'ImageData': The source height is zero or not a number.. | 
|  | 18 PASS [Worker] new ImageData('width', 'height') threw exception IndexSizeError: F
    ailed to construct 'ImageData': The source width is zero or not a number.. | 
|  | 19 PASS [Worker] new ImageData(1 << 31, 1 << 31) threw exception IndexSizeError: Fa
    iled to construct 'ImageData': The requested image size exceeds the supported ra
    nge.. | 
|  | 20 PASS [Worker] new ImageData(new Uint8ClampedArray(0)) threw exception TypeError:
     Failed to construct 'ImageData': 2 arguments required, but only 1 present.. | 
|  | 21 PASS [Worker] new ImageData(new Uint8Array(100), 25) threw exception IndexSizeEr
    ror: Failed to construct 'ImageData': The source width is zero or not a number.. | 
|  | 22 PASS [Worker] new ImageData(new Uint8ClampedArray(27), 2) threw exception IndexS
    izeError: Failed to construct 'ImageData': The input data byte length is not a m
    ultiple of 4.. | 
|  | 23 PASS [Worker] new ImageData(new Uint8ClampedArray(104), 14) threw exception Inde
    xSizeError: Failed to construct 'ImageData': The input data byte length is not a
     multiple of (4 * width).. | 
|  | 24 PASS [Worker] new ImageData(imageData.data, 0) threw exception IndexSizeError: F
    ailed to construct 'ImageData': The source width is zero or not a number.. | 
|  | 25 PASS [Worker] new ImageData(imageData.data, 13) threw exception IndexSizeError: 
    Failed to construct 'ImageData': The input data byte length is not a multiple of
     (4 * width).. | 
|  | 26 PASS [Worker] new ImageData(imageData.data, 1 << 31) threw exception IndexSizeEr
    ror: Failed to construct 'ImageData': The input data byte length is not a multip
    le of (4 * width).. | 
|  | 27 PASS [Worker] new ImageData(imageData.data, 'biggish') threw exception IndexSize
    Error: Failed to construct 'ImageData': The source width is zero or not a number
    .. | 
|  | 28 PASS [Worker] new ImageData(imageData.data, 1 << 24, 1 << 31) threw exception In
    dexSizeError: Failed to construct 'ImageData': The input data byte length is not
     a multiple of (4 * width).. | 
|  | 29 PASS [Worker] imageDataFromData.width is 100 | 
|  | 30 PASS [Worker] imageDataFromData.height is 50 | 
|  | 31 PASS [Worker] imageDataFromData.data is imageData.data | 
|  | 32 PASS [Worker] getRGBA(imageDataFromData.data, 10) is getRGBA(imageData.data, 10) | 
|  | 33 PASS [Worker] getRGBA(imageDataFromData.data, 10) is getRGBA(imageData.data, 10) | 
|  | 34 PASS [Worker] imageDataFromData.width is 20 | 
|  | 35 PASS [Worker] imageDataFromData.height is 5 | 
|  | 36 PASS [Worker] imageDataFromData.data is data | 
|  | 37 PASS [Worker] getRGBA(imageDataFromData.data, 2) is getRGBA(data, 2) | 
|  | 38 PASS [Worker] getRGBA(imageDataFromData.data, 2) is getRGBA(data, 2) | 
|  | 39 PASS successfullyParsed is true | 
|  | 40 | 
|  | 41 TEST COMPLETE | 
|  | 42 | 
| OLD | NEW | 
|---|