OLD | NEW |
1 [Worker] Test ImageData constructor | 1 [Worker] Test ImageData constructor |
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 Starting worker: ./resources/canvas-ImageData-workers.js | 6 Starting worker: ./resources/canvas-ImageData-workers.js |
7 PASS [Worker] ImageData is defined. | 7 PASS [Worker] ImageData is defined. |
8 PASS [Worker] ImageData.length is 2 | 8 PASS [Worker] ImageData.length is 2 |
9 PASS [Worker] imageData is non-null. | 9 PASS [Worker] imageData is non-null. |
10 PASS [Worker] imageData.data is non-null. | 10 PASS [Worker] imageData.data is non-null. |
11 PASS [Worker] imageData.width is 100 | 11 PASS [Worker] imageData.width is 100 |
12 PASS [Worker] imageData.height is 50 | 12 PASS [Worker] imageData.height is 50 |
13 PASS [Worker] getRGBA(imageData.data, 4) is [0, 0, 0, 0] | 13 PASS [Worker] getRGBA(imageData.data, 4) is [0, 0, 0, 0] |
14 PASS [Worker] getRGBA(imageData.data, 4) is testColor | 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.. | 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.. | 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.. | 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.. | 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.. | 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.. | 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.. | 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.. | 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(28), 7, 0) threw exception Ind
exSizeError: Failed to construct 'ImageData': The input data byte length is not
equal to (4 * width * height).. |
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(new Uint8ClampedArray(104), 14) threw exception Inde
xSizeError: Failed to construct 'ImageData': The input data byte length is not a
multiple of (4 * width).. |
| 25 PASS [Worker] new ImageData(self, 4, 4) threw exception TypeError: Failed to con
struct 'ImageData': parameter 1 is not of type 'Uint8ClampedArray'.. |
| 26 PASS [Worker] new ImageData(null, 4, 4) threw exception TypeError: Failed to con
struct 'ImageData': parameter 1 is not of type 'Uint8ClampedArray'.. |
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.. | 27 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).. | 28 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).. | 29 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
.. | 30 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).. | 31 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).. |
| 32 PASS [Worker] (new ImageData(new Uint8ClampedArray(28), 7)).height is 1 |
29 PASS [Worker] imageDataFromData.width is 100 | 33 PASS [Worker] imageDataFromData.width is 100 |
30 PASS [Worker] imageDataFromData.height is 50 | 34 PASS [Worker] imageDataFromData.height is 50 |
31 PASS [Worker] imageDataFromData.data is imageData.data | 35 PASS [Worker] imageDataFromData.data is imageData.data |
32 PASS [Worker] getRGBA(imageDataFromData.data, 10) is getRGBA(imageData.data, 10) | 36 PASS [Worker] getRGBA(imageDataFromData.data, 10) is getRGBA(imageData.data, 10) |
33 PASS [Worker] getRGBA(imageDataFromData.data, 10) is getRGBA(imageData.data, 10) | 37 PASS [Worker] getRGBA(imageDataFromData.data, 10) is getRGBA(imageData.data, 10) |
34 PASS [Worker] imageDataFromData.width is 20 | 38 PASS [Worker] imageDataFromData.width is 20 |
35 PASS [Worker] imageDataFromData.height is 5 | 39 PASS [Worker] imageDataFromData.height is 5 |
36 PASS [Worker] imageDataFromData.data is data | 40 PASS [Worker] imageDataFromData.data is data |
37 PASS [Worker] getRGBA(imageDataFromData.data, 2) is getRGBA(data, 2) | 41 PASS [Worker] getRGBA(imageDataFromData.data, 2) is getRGBA(data, 2) |
38 PASS [Worker] getRGBA(imageDataFromData.data, 2) is getRGBA(data, 2) | 42 PASS [Worker] getRGBA(imageDataFromData.data, 2) is getRGBA(data, 2) |
39 PASS successfullyParsed is true | 43 PASS successfullyParsed is true |
40 | 44 |
41 TEST COMPLETE | 45 TEST COMPLETE |
42 | 46 |
OLD | NEW |