Chromium Code Reviews| Index: LayoutTests/fast/canvas/canvas-createImageBitmap-invalid-args-expected.txt |
| diff --git a/LayoutTests/fast/canvas/canvas-createImageBitmap-invalid-args-expected.txt b/LayoutTests/fast/canvas/canvas-createImageBitmap-invalid-args-expected.txt |
| index 358ee31769a4a474c90f0fecbd1830d95cc1772f..62cdc6c9dc320898bdbd4a29fadbf936d7052ba6 100644 |
| --- a/LayoutTests/fast/canvas/canvas-createImageBitmap-invalid-args-expected.txt |
| +++ b/LayoutTests/fast/canvas/canvas-createImageBitmap-invalid-args-expected.txt |
| @@ -3,26 +3,66 @@ Ensure correct behavior of createImageBitmap for invalid inputs. |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| -PASS createImageBitmap(image) threw exception InvalidStateError: Failed to execute 'createImageBitmap' on 'Window': No image can be retrieved from the provided element.. |
| -PASS createImageBitmap(video) threw exception InvalidStateError: Failed to execute 'createImageBitmap' on 'Window': No player can be retrieved from the provided video element.. |
| -PASS createImageBitmap(undefined) threw exception TypeError: Failed to execute 'createImageBitmap' on 'Window': No function was found that matched the signature provided.. |
| -PASS createImageBitmap(null) threw exception TypeError: Failed to execute 'createImageBitmap' on 'Window': No function was found that matched the signature provided.. |
| -PASS createImageBitmap(image, 0, 0, 10, 0) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.. |
| -PASS createImageBitmap(image, 0, 0, 0, 10) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.. |
| -PASS createImageBitmap(video, 0, 0, 10, 0) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.. |
| -PASS createImageBitmap(video, 0, 0, 0, 10) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.. |
| -PASS createImageBitmap(aCanvas, 0, 0, 10, 0) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.. |
| -PASS createImageBitmap(aCanvas, 0, 0, 0, 10) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.. |
| -PASS createImageBitmap(d, 0, 0, 10, 0) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.. |
| -PASS createImageBitmap(d, 0, 0, 0, 10) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.. |
| -PASS createImageBitmap(aCtx, 0, 0, 10, 0) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.. |
| -PASS createImageBitmap(aCtx, 0, 0, 0, 10) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.. |
| -PASS createImageBitmap(testBitmap, 0, 0, 10, 0) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.. |
| -PASS createImageBitmap(testBitmap, 0, 0, 0, 10) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.. |
| -PASS createImageBitmap(blob, 0, 0, 10, 0) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.. |
| -PASS createImageBitmap(blob, 0, 0, 0, 10) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.. |
| -PASS createImageBitmap(invalidBlob) was rejected. |
| -PASS createImageBitmap(invalidCanvas) was rejected. |
| +PASS Rejected as expected: undefined |
| +PASS reason instanceof Error is true |
| +TypeError: Failed to execute 'createImageBitmap' on 'Window': No function was found that matched the signature provided. |
| +PASS Rejected as expected: null |
| +PASS reason instanceof Error is true |
| +TypeError: Failed to execute 'createImageBitmap' on 'Window': No function was found that matched the signature provided. |
| +PASS Rejected as expected: empty image |
| +PASS reason instanceof Error is true |
| +InvalidStateError: Failed to execute 'createImageBitmap' on 'Window': No image can be retrieved from the provided element. |
| +PASS Rejected as expected: empty video |
| +PASS reason instanceof Error is true |
| +InvalidStateError: Failed to execute 'createImageBitmap' on 'Window': The provided element has not retrieved data. |
| +PASS Rejected as expected: image / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0. |
| +PASS Rejected as expected: image / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0. |
| +PASS Rejected as expected: video / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0. |
| +PASS Rejected as expected: video / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0. |
| +PASS Rejected as expected: canvas / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0. |
| +PASS Rejected as expected: canvas / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0. |
| +PASS Rejected as expected: canvas context / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0. |
| +PASS Rejected as expected: canvas context / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0. |
| +PASS Rejected as expected: canvas imagedata / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0. |
| +PASS Rejected as expected: canvas imagedata / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0. |
| +PASS Rejected as expected: image bitmap / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0. |
| +PASS Rejected as expected: image bitmap / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0. |
| +PASS Rejected as expected: blob / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0. |
| +PASS Rejected as expected: blob / invalid range |
| +PASS reason instanceof Error is true |
| +IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0. |
| +PASS Rejected as expected: invalid blob |
| +FAIL reason instanceof Error should be true. Was false. |
|
yhirano
2014/10/23 08:03:58
Here the implementation throws null. Because I thi
|
| +null |
| +PASS Rejected as expected: invalid canvas |
| +FAIL reason instanceof Error should be true. Was false. |
|
yhirano
2014/10/23 08:03:58
ditto
|
| +null |
| PASS successfullyParsed is true |
| TEST COMPLETE |