Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-close-expected.txt

Issue 1911793003: drawImage throw when ImageBitmap is neutered (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Tests that the close method of ImageBitmap does dispose the image data 1 Tests that the close method of ImageBitmap does dispose the image data
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 PASS bitmap.width is imgWidth 6 PASS bitmap.width is imgWidth
7 PASS bitmap.height is imgHeight 7 PASS bitmap.height is imgHeight
8 PASS bitmap.width is imgWidth 8 PASS bitmap.width is imgWidth
9 PASS bitmap.height is imgHeight 9 PASS bitmap.height is imgHeight
10 PASS bitmap.width is 0 10 PASS bitmap.width is 0
11 PASS bitmap.height is 0 11 PASS bitmap.height is 0
12 PASS ctx.drawImage(bitmap, 0, 0) threw exception InvalidStateError: Failed to ex ecute 'drawImage' on 'CanvasRenderingContext2D': The image source is neutered.
12 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. 13 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.
13 PASS Apply transfering to an already closed bitmap is rejected as expected: Data CloneError: Failed to execute 'postMessage' on 'Worker': An ImageBitmap is neute red and could not be cloned. 14 PASS Apply transfering to an already closed bitmap is rejected as expected: Data CloneError: Failed to execute 'postMessage' on 'Worker': An ImageBitmap is neute red and could not be cloned.
14 PASS createImageBitmap from a closed ImageBitmap was rejected. IndexSizeError: F ailed to execute 'createImageBitmap' on 'Window': The source width provided is 0 . 15 PASS createImageBitmap from a closed ImageBitmap was rejected. IndexSizeError: F ailed to execute 'createImageBitmap' on 'Window': The source width provided is 0 .
15 PASS bitmap.width is 0 16 PASS bitmap.width is 0
16 PASS bitmap.height is 0 17 PASS bitmap.height is 0
17 PASS bitmap.width is imgWidth 18 PASS bitmap.width is imgWidth
18 PASS bitmap.height is imgHeight 19 PASS bitmap.height is imgHeight
19 PASS bitmap.width is 0 20 PASS bitmap.width is 0
20 PASS bitmap.height is 0 21 PASS bitmap.height is 0
21 PASS bitmap.width is 0 22 PASS bitmap.width is 0
22 PASS bitmap.height is 0 23 PASS bitmap.height is 0
23 PASS successfullyParsed is true 24 PASS successfullyParsed is true
24 25
25 TEST COMPLETE 26 TEST COMPLETE
26 27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698