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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-invalid-args-expected.txt

Issue 2500493002: Prevent bad casting in ImageBitmap when calling ArrayBuffer::createOrNull (Closed)
Patch Set: change all size_t to unsigned Created 4 years, 1 month 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 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 Rejected as expected: undefined 6 PASS Rejected as expected: undefined
7 PASS reason instanceof Error is true 7 PASS reason instanceof Error is true
8 TypeError: Failed to execute 'createImageBitmap' on 'Window': The provided value is not of type '(HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or B lob or ImageData or ImageBitmap)' 8 TypeError: Failed to execute 'createImageBitmap' on 'Window': The provided value is not of type '(HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or B lob or ImageData or ImageBitmap)'
9 PASS Rejected as expected: null 9 PASS Rejected as expected: null
10 PASS reason instanceof Error is true 10 PASS reason instanceof Error is true
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 PASS Rejected as expected: blob / invalid range 48 PASS Rejected as expected: blob / invalid range
49 PASS reason instanceof Error is true 49 PASS reason instanceof Error is true
50 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source he ight provided is 0. 50 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source he ight provided is 0.
51 PASS Rejected as expected: blob / invalid range 51 PASS Rejected as expected: blob / invalid range
52 PASS reason instanceof Error is true 52 PASS reason instanceof Error is true
53 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source wi dth provided is 0. 53 IndexSizeError: Failed to execute 'createImageBitmap' on 'Window': The source wi dth provided is 0.
54 PASS Rejected as expected: invalid blob 54 PASS Rejected as expected: invalid blob
55 PASS reason instanceof Error is true 55 PASS reason instanceof Error is true
56 InvalidStateError: The source image cannot be decoded. 56 InvalidStateError: The source image cannot be decoded.
57 PASS Rejected as expected: invalid canvas 57 PASS Rejected as expected: invalid canvas
58 FAIL reason instanceof Error should be true. Was false. 58 null
59 PASS Rejected as expected: cropRect too big
59 null 60 null
60 PASS successfullyParsed is true 61 PASS successfullyParsed is true
61 62
62 TEST COMPLETE 63 TEST COMPLETE
63 64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698