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

Side by Side Diff: LayoutTests/fast/canvas/canvas-getImageData-invalid-expected.txt

Issue 860353002: IDL: Add toRestricted{Float,Double}() helpers to V8Binding.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add FIXME comment Created 5 years, 11 months 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 Test the handling of invalid arguments in canvas getImageData(). 1 Test the handling of invalid arguments in canvas getImageData().
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 ctx.getImageData(NaN, 10, 10, 10) threw exception TypeError: Failed to exec ute 'getImageData' on 'CanvasRenderingContext2D': float parameter 1 is non-finit e.. 6 PASS ctx.getImageData(NaN, 10, 10, 10) threw exception TypeError: Failed to exec ute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is no n-finite..
7 PASS ctx.getImageData(10, NaN, 10, 10) threw exception TypeError: Failed to exec ute 'getImageData' on 'CanvasRenderingContext2D': float parameter 2 is non-finit e.. 7 PASS ctx.getImageData(10, NaN, 10, 10) threw exception TypeError: Failed to exec ute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is no n-finite..
8 PASS ctx.getImageData(10, 10, NaN, 10) threw exception TypeError: Failed to exec ute 'getImageData' on 'CanvasRenderingContext2D': float parameter 3 is non-finit e.. 8 PASS ctx.getImageData(10, 10, NaN, 10) threw exception TypeError: Failed to exec ute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is no n-finite..
9 PASS ctx.getImageData(10, 10, 10, NaN) threw exception TypeError: Failed to exec ute 'getImageData' on 'CanvasRenderingContext2D': float parameter 4 is non-finit e.. 9 PASS ctx.getImageData(10, 10, 10, NaN) threw exception TypeError: Failed to exec ute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is no n-finite..
10 PASS ctx.getImageData(Infinity, 10, 10, 10) threw exception TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': float parameter 1 is non- finite.. 10 PASS ctx.getImageData(Infinity, 10, 10, 10) threw exception TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is non-finite..
11 PASS ctx.getImageData(10, Infinity, 10, 10) threw exception TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': float parameter 2 is non- finite.. 11 PASS ctx.getImageData(10, Infinity, 10, 10) threw exception TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is non-finite..
12 PASS ctx.getImageData(10, 10, Infinity, 10) threw exception TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': float parameter 3 is non- finite.. 12 PASS ctx.getImageData(10, 10, Infinity, 10) threw exception TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is non-finite..
13 PASS ctx.getImageData(10, 10, 10, Infinity) threw exception TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': float parameter 4 is non- finite.. 13 PASS ctx.getImageData(10, 10, 10, Infinity) threw exception TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is non-finite..
14 PASS ctx.getImageData(undefined, 10, 10, 10) threw exception TypeError: Failed t o execute 'getImageData' on 'CanvasRenderingContext2D': float parameter 1 is non -finite.. 14 PASS ctx.getImageData(undefined, 10, 10, 10) threw exception TypeError: Failed t o execute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is non-finite..
15 PASS ctx.getImageData(10, undefined, 10, 10) threw exception TypeError: Failed t o execute 'getImageData' on 'CanvasRenderingContext2D': float parameter 2 is non -finite.. 15 PASS ctx.getImageData(10, undefined, 10, 10) threw exception TypeError: Failed t o execute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is non-finite..
16 PASS ctx.getImageData(10, 10, undefined, 10) threw exception TypeError: Failed t o execute 'getImageData' on 'CanvasRenderingContext2D': float parameter 3 is non -finite.. 16 PASS ctx.getImageData(10, 10, undefined, 10) threw exception TypeError: Failed t o execute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is non-finite..
17 PASS ctx.getImageData(10, 10, 10, undefined) threw exception TypeError: Failed t o execute 'getImageData' on 'CanvasRenderingContext2D': float parameter 4 is non -finite.. 17 PASS ctx.getImageData(10, 10, 10, undefined) threw exception TypeError: Failed t o execute 'getImageData' on 'CanvasRenderingContext2D': The provided float value is non-finite..
18 PASS ctx.getImageData(10, 10, 0, 10) threw exception IndexSizeError: Failed to e xecute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0.. 18 PASS ctx.getImageData(10, 10, 0, 10) threw exception IndexSizeError: Failed to e xecute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0..
19 PASS ctx.getImageData(10, 10, 10, 0) threw exception IndexSizeError: Failed to e xecute 'getImageData' on 'CanvasRenderingContext2D': The source height is 0.. 19 PASS ctx.getImageData(10, 10, 10, 0) threw exception IndexSizeError: Failed to e xecute 'getImageData' on 'CanvasRenderingContext2D': The source height is 0..
20 PASS successfullyParsed is true 20 PASS successfullyParsed is true
21 21
22 TEST COMPLETE 22 TEST COMPLETE
23 23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698