| Index: LayoutTests/fast/canvas/canvas-ImageData-constructor-expected.txt
|
| diff --git a/LayoutTests/fast/canvas/canvas-ImageData-constructor-expected.txt b/LayoutTests/fast/canvas/canvas-ImageData-constructor-expected.txt
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e3940a6fc68921aaaba2fb40542ddab837e07113
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/canvas/canvas-ImageData-constructor-expected.txt
|
| @@ -0,0 +1,30 @@
|
| +Test canvas ImageData constructor
|
| +
|
| +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
| +
|
| +
|
| +PASS imageData is non-null.
|
| +PASS imageData.data is non-null.
|
| +PASS imageData.data[11] is 0
|
| +PASS imageData.width is 100
|
| +PASS imageData.height is 50
|
| +PASS imageData.data[32] is 231
|
| +PASS new ImageData(10) threw exception TypeError: Failed to construct 'ImageData': 2 arguments required, but only 1 present..
|
| +PASS new ImageData(0, 10) threw exception IndexSizeError: Failed to construct 'ImageData': The source width is zero or non-finite..
|
| +PASS new ImageData(10, 0) threw exception IndexSizeError: Failed to construct 'ImageData': The source height is zero or non-finite..
|
| +PASS new ImageData('width', 'height') threw exception IndexSizeError: Failed to construct 'ImageData': The source width is zero or non-finite..
|
| +PASS new ImageData(1 << 31, 1 << 31) threw exception IndexSizeError: Failed to construct 'ImageData': The requested image size exceeds the supported range..
|
| +PASS new ImageData(new Uint8ClampedArray(0)) threw exception TypeError: Failed to construct 'ImageData': 2 arguments required, but only 1 present..
|
| +PASS new ImageData(new Uint8Array(100), 25) threw exception IndexSizeError: Failed to construct 'ImageData': The source width is zero or non-finite..
|
| +PASS new ImageData(imageData.data, 0) threw exception IndexSizeError: Failed to construct 'ImageData': The source width is zero or non-finite..
|
| +PASS new ImageData(imageData.data, 13) threw exception IndexSizeError: Failed to construct 'ImageData': The byte length of the input data is not a multiple of (4 * width)..
|
| +PASS new ImageData(imageData.data, 1 << 31) threw exception IndexSizeError: Failed to construct 'ImageData': The byte length of the input data is not a multiple of (4 * width)..
|
| +PASS new ImageData(imageData.data, 'biggish') threw exception IndexSizeError: Failed to construct 'ImageData': The source width is zero or non-finite..
|
| +PASS new ImageData(imageData.data, 1 << 24, 1 << 31) threw exception IndexSizeError: Failed to construct 'ImageData': The byte length of the input data is not a multiple of (4 * width)..
|
| +PASS imageDataFromData.width is 100
|
| +PASS imageDataFromData.height is 50
|
| +PASS imageDataFromData.data[34] is imageData.data[34]
|
| +PASS successfullyParsed is true
|
| +
|
| +TEST COMPLETE
|
| +
|
|
|