summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageData-neutered-source-expected.txt
blob: b6d96bc4a00828574bc3f900123a3a64abea9a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Tests how putImageData and createImageBitmap would react when the source data is neutered

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


PASS len is 4
PASS image.data[0] is 255
PASS image.data[1] is 0
PASS image.data[2] is 0
PASS image.data[3] is 255
PASS newImage.data[0] is 255
PASS newImage.data[1] is 0
PASS newImage.data[2] is 0
PASS newImage.data[3] is 255
PASS len is 0
PASS image.data[0] is undefined
PASS image.data[1] is undefined
PASS image.data[2] is undefined
PASS image.data[3] is undefined
PASS context.putImageData(image, 0, 0) threw exception InvalidStateError: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': The source data has been neutered..
PASS Promise rejected as expected: InvalidStateError: Failed to execute 'createImageBitmap' on 'Window': The source data has been neutered.
PASS successfullyParsed is true

TEST COMPLETE