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

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

Issue 289283002: Add some layout tests about behavior on undefined and null. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 7 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 This test ensures that putImageData works correctly, the end result should be a 100x100px green square. 1 This test ensures that putImageData works correctly, the end result should be a 100x100px green square.
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 getPixel(0,0) is [0,128,0,255] 6 PASS getPixel(0,0) is [0,128,0,255]
7 PASS getPixel(25,25) is [0,128,0,255] 7 PASS getPixel(25,25) is [0,128,0,255]
8 PASS getPixel(49,0) is [0,128,0,255] 8 PASS getPixel(49,0) is [0,128,0,255]
9 PASS getPixel(0,49) is [0,128,0,255] 9 PASS getPixel(0,49) is [0,128,0,255]
10 PASS getPixel(49,49) is [0,128,0,255] 10 PASS getPixel(49,49) is [0,128,0,255]
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 PASS context.putImageData(buffer, 0, 0, Infinity, 0, 0, 0) threw exception TypeE rror: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float para meter 4 is non-finite.. 156 PASS context.putImageData(buffer, 0, 0, Infinity, 0, 0, 0) threw exception TypeE rror: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float para meter 4 is non-finite..
157 PASS context.putImageData(buffer, 0, 0, 0, Infinity, 0, 0) threw exception TypeE rror: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float para meter 5 is non-finite.. 157 PASS context.putImageData(buffer, 0, 0, 0, Infinity, 0, 0) threw exception TypeE rror: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float para meter 5 is non-finite..
158 PASS context.putImageData(buffer, 0, 0, 0, 0, Infinity, 0) threw exception TypeE rror: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float para meter 6 is non-finite.. 158 PASS context.putImageData(buffer, 0, 0, 0, 0, Infinity, 0) threw exception TypeE rror: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float para meter 6 is non-finite..
159 PASS context.putImageData(buffer, 0, 0, 0, 0, 0, Infinity) threw exception TypeE rror: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float para meter 7 is non-finite.. 159 PASS context.putImageData(buffer, 0, 0, 0, 0, 0, Infinity) threw exception TypeE rror: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float para meter 7 is non-finite..
160 PASS context.putImageData(buffer, undefined, 0, 0, 0, 0, 0) threw exception Type Error: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float par ameter 2 is non-finite.. 160 PASS context.putImageData(buffer, undefined, 0, 0, 0, 0, 0) threw exception Type Error: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float par ameter 2 is non-finite..
161 PASS context.putImageData(buffer, 0, undefined, 0, 0, 0, 0) threw exception Type Error: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float par ameter 3 is non-finite.. 161 PASS context.putImageData(buffer, 0, undefined, 0, 0, 0, 0) threw exception Type Error: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float par ameter 3 is non-finite..
162 PASS context.putImageData(buffer, 0, 0, undefined, 0, 0, 0) threw exception Type Error: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float par ameter 4 is non-finite.. 162 PASS context.putImageData(buffer, 0, 0, undefined, 0, 0, 0) threw exception Type Error: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float par ameter 4 is non-finite..
163 PASS context.putImageData(buffer, 0, 0, 0, undefined, 0, 0) threw exception Type Error: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float par ameter 5 is non-finite.. 163 PASS context.putImageData(buffer, 0, 0, 0, undefined, 0, 0) threw exception Type Error: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float par ameter 5 is non-finite..
164 PASS context.putImageData(buffer, 0, 0, 0, 0, undefined, 0) threw exception Type Error: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float par ameter 6 is non-finite.. 164 PASS context.putImageData(buffer, 0, 0, 0, 0, undefined, 0) threw exception Type Error: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float par ameter 6 is non-finite..
165 PASS context.putImageData(buffer, 0, 0, 0, 0, 0, undefined) threw exception Type Error: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float par ameter 7 is non-finite.. 165 PASS context.putImageData(buffer, 0, 0, 0, 0, 0, undefined) threw exception Type Error: Failed to execute 'putImageData' on 'CanvasRenderingContext2D': float par ameter 7 is non-finite..
166 PASS context.putImageData(null, 0, 0, 0, 0, 0, 0) threw exception TypeError: Fai led to execute 'putImageData' on 'CanvasRenderingContext2D': parameter 1 is not of type 'ImageData'..
167 PASS context.putImageData(undefined, 0, 0, 0, 0, 0, 0) threw exception TypeError : Failed to execute 'putImageData' on 'CanvasRenderingContext2D': parameter 1 is not of type 'ImageData'..
166 PASS successfullyParsed is true 168 PASS successfullyParsed is true
167 169
168 TEST COMPLETE 170 TEST COMPLETE
169 171
170 172
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/canvas-putImageData.js ('k') | LayoutTests/fast/canvas/canvas-scroll-path-into-view-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698