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

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

Issue 237063003: Add StrictTypeChecking to CRC2D ImageData APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 Test canvas createImageData() 1 Test canvas createImageData()
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.createImageData(null) threw exception NotSupportedError: Failed to exec ute 'createImageData' on 'CanvasRenderingContext2D': The 1st argument provided i s either null, or an invalid ImageData object.. 6 PASS ctx.createImageData(null) threw exception TypeError: Failed to execute 'cre ateImageData' on 'CanvasRenderingContext2D': No function was found that matched the signature provided..
7 PASS imageData.width is 100 7 PASS imageData.width is 100
8 PASS imageData.height is 50 8 PASS imageData.height is 50
9 PASS imageData.data[32] is 255 9 PASS imageData.data[32] is 255
10 PASS sameSizeImageData.width is 100 10 PASS sameSizeImageData.width is 100
11 PASS sameSizeImageData.height is 50 11 PASS sameSizeImageData.height is 50
12 PASS sameSizeImageData.data[32] is 0 12 PASS sameSizeImageData.data[32] is 0
13 PASS imgdata1.data.length is 800 13 PASS imgdata1.data.length is 800
14 PASS imgdata1.data.length is imgdata2.data.length 14 PASS imgdata1.data.length is imgdata2.data.length
15 PASS imgdata2.data.length is imgdata3.data.length 15 PASS imgdata2.data.length is imgdata3.data.length
16 PASS imgdata3.data.length is imgdata4.data.length 16 PASS imgdata3.data.length is imgdata4.data.length
17 PASS successfullyParsed is true 17 PASS successfullyParsed is true
18 18
19 TEST COMPLETE 19 TEST COMPLETE
20 20
OLDNEW
« no previous file with comments | « LayoutTests/canvas/philip/tests/2d.imageData.create1.zero.html ('k') | Source/core/html/canvas/CanvasRenderingContext2D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698