Chromium Code Reviews| OLD | NEW | 
|---|---|
| 1 Ensure correct behavior of createImageBitmap for invalid inputs. | 1 Ensure correct behavior of createImageBitmap for invalid inputs. | 
| 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 createImageBitmap(image) threw exception InvalidStateError: Failed to execu te 'createImageBitmap' on 'Window': No image can be retrieved from the provided element.. | 6 PASS Rejected as expected: undefined | 
| 7 PASS createImageBitmap(video) threw exception InvalidStateError: Failed to execu te 'createImageBitmap' on 'Window': No player can be retrieved from the provided video element.. | 7 PASS reason instanceof Error is true | 
| 8 PASS createImageBitmap(undefined) threw exception TypeError: Failed to execute ' createImageBitmap' on 'Window': No function was found that matched the signature provided.. | 8 TypeError: Failed to execute 'createImageBitmap' on 'Window': No function was fo und that matched the signature provided. | 
| 9 PASS createImageBitmap(null) threw exception TypeError: Failed to execute 'creat eImageBitmap' on 'Window': No function was found that matched the signature prov ided.. | 9 PASS Rejected as expected: null | 
| 10 PASS createImageBitmap(image, 0, 0, 10, 0) threw exception IndexSizeError: Faile d to execute 'createImageBitmap' on 'Window': The source height provided is 0.. | 10 PASS reason instanceof Error is true | 
| 11 PASS createImageBitmap(image, 0, 0, 0, 10) threw exception IndexSizeError: Faile d to execute 'createImageBitmap' on 'Window': The source width provided is 0.. | 11 TypeError: Failed to execute 'createImageBitmap' on 'Window': No function was fo und that matched the signature provided. | 
| 12 PASS createImageBitmap(video, 0, 0, 10, 0) threw exception IndexSizeError: Faile d to execute 'createImageBitmap' on 'Window': The source height provided is 0.. | 12 PASS Rejected as expected: empty image | 
| 13 PASS createImageBitmap(video, 0, 0, 0, 10) threw exception IndexSizeError: Faile d to execute 'createImageBitmap' on 'Window': The source width provided is 0.. | 13 PASS reason instanceof Error is true | 
| 14 PASS createImageBitmap(aCanvas, 0, 0, 10, 0) threw exception IndexSizeError: Fai led to execute 'createImageBitmap' on 'Window': The source height provided is 0. . | 14 InvalidStateError: Failed to execute 'createImageBitmap' on 'Window': No image c an be retrieved from the provided element. | 
| 15 PASS createImageBitmap(aCanvas, 0, 0, 0, 10) threw exception IndexSizeError: Fai led to execute 'createImageBitmap' on 'Window': The source width provided is 0.. | 15 PASS Rejected as expected: empty video | 
| 16 PASS createImageBitmap(d, 0, 0, 10, 0) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.. | 16 PASS reason instanceof Error is true | 
| 17 PASS createImageBitmap(d, 0, 0, 0, 10) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.. | 17 InvalidStateError: Failed to execute 'createImageBitmap' on 'Window': The provid ed element has not retrieved data. | 
| 18 PASS createImageBitmap(aCtx, 0, 0, 10, 0) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.. | 18 PASS Rejected as expected: image / invalid range | 
| 19 PASS createImageBitmap(aCtx, 0, 0, 0, 10) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.. | 19 PASS reason instanceof Error is true | 
| 20 PASS createImageBitmap(testBitmap, 0, 0, 10, 0) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.. | 20 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source he ight provided is 0. | 
| 21 PASS createImageBitmap(testBitmap, 0, 0, 0, 10) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.. | 21 PASS Rejected as expected: image / invalid range | 
| 22 PASS createImageBitmap(blob, 0, 0, 10, 0) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source height provided is 0.. | 22 PASS reason instanceof Error is true | 
| 23 PASS createImageBitmap(blob, 0, 0, 0, 10) threw exception IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source width provided is 0.. | 23 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source wi dth provided is 0. | 
| 24 PASS createImageBitmap(invalidBlob) was rejected. | 24 PASS Rejected as expected: video / invalid range | 
| 25 PASS createImageBitmap(invalidCanvas) was rejected. | 25 PASS reason instanceof Error is true | 
| 26 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source he ight 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 wi dth 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 he ight 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 wi dth 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 he ight 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 wi dth 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 he ight 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 wi dth 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 he ight 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 wi dth 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 he ight 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 wi dth provided is 0. | |
| 60 PASS Rejected as expected: invalid blob | |
| 61 FAIL reason instanceof Error should be true. Was false. | |
| 
 
yhirano
2014/10/23 08:03:58
Here the implementation throws null. Because I thi
 
 | |
| 62 null | |
| 63 PASS Rejected as expected: invalid canvas | |
| 64 FAIL reason instanceof Error should be true. Was false. | |
| 
 
yhirano
2014/10/23 08:03:58
ditto
 
 | |
| 65 null | |
| 26 PASS successfullyParsed is true | 66 PASS successfullyParsed is true | 
| 27 | 67 | 
| 28 TEST COMPLETE | 68 TEST COMPLETE | 
| 29 | 69 | 
| OLD | NEW |