1 Ensure correct behavior of createImageBitmap for invalid inputs.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS Rejected as expected: undefined
7 PASS reason instanceof Error is true
8 TypeError: Failed to execute 'createImageBitmap' on 'Window': No function was found that matched the signature provided.
9 PASS Rejected as expected: null
10 PASS reason instanceof Error is true
11 TypeError: Failed to execute 'createImageBitmap' on 'Window': No function was found that matched the signature provided.
12 PASS Rejected as expected: empty image
13 PASS reason instanceof Error is true
14 InvalidStateError: Failed to execute 'createImageBitmap' on 'Window': No image can be retrieved from the provided element.
15 PASS Rejected as expected: empty video
16 PASS reason instanceof Error is true
17 InvalidStateError: Failed to execute 'createImageBitmap' on 'Window': The provided element has not retrieved data.
18 PASS Rejected as expected: image / invalid range
19 PASS reason instanceof Error is true
20 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.
21 PASS Rejected as expected: image / invalid range
22 PASS reason instanceof Error is true
23 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.
24 PASS Rejected as expected: video / invalid range
25 PASS reason instanceof Error is true
26 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.
27 PASS Rejected as expected: video / invalid range
28 PASS reason instanceof Error is true
29 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.
30 PASS Rejected as expected: canvas / invalid range
31 PASS reason instanceof Error is true
32 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.
33 PASS Rejected as expected: canvas / invalid range
34 PASS reason instanceof Error is true
35 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.
36 PASS Rejected as expected: canvas context / invalid range
37 PASS reason instanceof Error is true
38 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.
39 PASS Rejected as expected: canvas context / invalid range
40 PASS reason instanceof Error is true
41 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.
42 PASS Rejected as expected: canvas imagedata / invalid range
43 PASS reason instanceof Error is true
44 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.
45 PASS Rejected as expected: canvas imagedata / invalid range
46 PASS reason instanceof Error is true
47 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.
48 PASS Rejected as expected: image bitmap / invalid range
49 PASS reason instanceof Error is true
50 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.
51 PASS Rejected as expected: image bitmap / invalid range
52 PASS reason instanceof Error is true
53 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.
54 PASS Rejected as expected: blob / invalid range
55 PASS reason instanceof Error is true
56 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.
57 PASS Rejected as expected: blob / invalid range
58 PASS reason instanceof Error is true
59 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.
60 PASS Rejected as expected: invalid blob
61 FAIL reason instanceof Error should be true. Was false.
63 PASS Rejected as expected: invalid canvas
64 FAIL reason instanceof Error should be true. Was false.
66 PASS successfullyParsed is true