blob: 45f865cbd87f97da2627d5533a4c0027c6379ae1 (
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
26
|
Tests that the close method of ImageBitmap does dispose the image data
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS bitmap.width is imgWidth
PASS bitmap.height is imgHeight
PASS bitmap.width is imgWidth
PASS bitmap.height is imgHeight
PASS bitmap.width is 0
PASS bitmap.height is 0
PASS Apply structured clone to an already closed bitmap is rejected as expected: DataCloneError: Failed to execute 'postMessage' on 'Worker': An ImageBitmap is neutered and could not be cloned.
PASS Apply transfering to an already closed bitmap is rejected as expected: DataCloneError: Failed to execute 'postMessage' on 'Worker': An ImageBitmap is neutered and could not be cloned.
PASS createImageBitmap from a closed ImageBitmap was rejected. IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.
PASS bitmap.width is 0
PASS bitmap.height is 0
PASS bitmap.width is imgWidth
PASS bitmap.height is imgHeight
PASS bitmap.width is 0
PASS bitmap.height is 0
PASS bitmap.width is 0
PASS bitmap.height is 0
PASS successfullyParsed is true
TEST COMPLETE
|