OLD | NEW |
| (Empty) |
1 Test OffscreenCanvas transferable with exception cases. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS ctx = offscreenCanvas1.getContext('2d') did not throw exception. | |
7 PASS ctx is an instance of OffscreenCanvasRenderingContext2D | |
8 PASS Transfer an offscreenCanvas with a context should throw an exception: DataC
loneError: Failed to execute 'postMessage' on 'Worker': An OffscreenCanvas with
a context could not be cloned. | |
9 PASS Calling transferToImageBitmap from a neutered offscreenCanvas should throw
an exception: InvalidStateError: Failed to execute 'transferToImageBitmap' on 'O
ffscreenCanvas': Cannot transfer an ImageBitmap from a neutered OffscreenCanvas | |
10 PASS Transfer a neutered offscreenCanvas should throw an exception: DataCloneErr
or: Failed to execute 'postMessage' on 'Worker': An OffscreenCanvas is neutered
and could not be cloned. | |
11 PASS Calling getContext('2d') from a neutered offscreenCanvas should throw an ex
ception: InvalidStateError: Failed to execute 'getContext' on 'OffscreenCanvas':
Cannot get context of a neutered OffscreenCanvas | |
12 PASS successfullyParsed is true | |
13 | |
14 TEST COMPLETE | |
15 | |
OLD | NEW |