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

Side by Side Diff: LayoutTests/fast/canvas/canvas-pattern-behaviour-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 covers the behaviour of pattern use and construction 1 This test covers the behaviour of pattern use and construction
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 context.createPattern(green1x1, null) did not throw an exception 6 PASS context.createPattern(green1x1, null) did not throw an exception
7 PASS getPixel(1,1) is [0,128,0,255] 7 PASS getPixel(1,1) is [0,128,0,255]
8 PASS getPixel(98,1) is [0,128,0,255] 8 PASS getPixel(98,1) is [0,128,0,255]
9 PASS getPixel(1,48) is [0,128,0,255] 9 PASS getPixel(1,48) is [0,128,0,255]
10 PASS getPixel(98,48) is [0,128,0,255] 10 PASS getPixel(98,48) is [0,128,0,255]
11 PASS context.createPattern(green1x1, 'null') threw exception SyntaxError: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The provided type ('n ull') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.. 11 PASS context.createPattern(green1x1, 'null') threw exception SyntaxError: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The provided type ('n ull') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'..
12 PASS context.createPattern(green1x1, undefined) threw exception SyntaxError: Fai led to execute 'createPattern' on 'CanvasRenderingContext2D': The provided type ('undefined') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.. 12 PASS context.createPattern(green1x1, undefined) threw exception SyntaxError: Fai led to execute 'createPattern' on 'CanvasRenderingContext2D': The provided type ('undefined') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'..
13 PASS context.createPattern(green1x1, 'undefined') threw exception SyntaxError: F ailed to execute 'createPattern' on 'CanvasRenderingContext2D': The provided typ e ('undefined') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.. 13 PASS context.createPattern(green1x1, 'undefined') threw exception SyntaxError: F ailed to execute 'createPattern' on 'CanvasRenderingContext2D': The provided typ e ('undefined') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'..
14 PASS context.createPattern(green1x1, {toString:function(){ return null;}}) threw exception SyntaxError: Failed to execute 'createPattern' on 'CanvasRenderingCon text2D': The provided type ('null') is not one of 'repeat', 'no-repeat', 'repeat -x', or 'repeat-y'.. 14 PASS context.createPattern(green1x1, {toString:function(){ return null;}}) threw exception SyntaxError: Failed to execute 'createPattern' on 'CanvasRenderingCon text2D': The provided type ('null') is not one of 'repeat', 'no-repeat', 'repeat -x', or 'repeat-y'..
15 PASS context.createPattern(null, '') threw exception TypeError: Failed to execut e 'createPattern' on 'CanvasRenderingContext2D': No function was found that matc hed the signature provided..
16 PASS context.createPattern(undefined, '') threw exception TypeError: Failed to e xecute 'createPattern' on 'CanvasRenderingContext2D': No function was found that matched the signature provided..
17 PASS context.createPattern({}, '') threw exception TypeError: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': No function was found that matche d the signature provided..
18 PASS context.createPattern([], '') threw exception TypeError: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': No function was found that matche d the signature provided..
15 PASS context.createPattern(green1x1, '') did not throw an exception 19 PASS context.createPattern(green1x1, '') did not throw an exception
16 PASS getPixel(1,1) is [0,128,0,255] 20 PASS getPixel(1,1) is [0,128,0,255]
17 PASS getPixel(98,1) is [0,128,0,255] 21 PASS getPixel(98,1) is [0,128,0,255]
18 PASS getPixel(1,48) is [0,128,0,255] 22 PASS getPixel(1,48) is [0,128,0,255]
19 PASS getPixel(98,48) is [0,128,0,255] 23 PASS getPixel(98,48) is [0,128,0,255]
20 PASS context.createPattern(green1x1, {toString:function(){ return 'repeat';}}) d id not throw an exception 24 PASS context.createPattern(green1x1, {toString:function(){ return 'repeat';}}) d id not throw an exception
21 PASS getPixel(1,1) is [0,128,0,255] 25 PASS getPixel(1,1) is [0,128,0,255]
22 PASS getPixel(98,1) is [0,128,0,255] 26 PASS getPixel(98,1) is [0,128,0,255]
23 PASS getPixel(1,48) is [0,128,0,255] 27 PASS getPixel(1,48) is [0,128,0,255]
24 PASS getPixel(98,48) is [0,128,0,255] 28 PASS getPixel(98,48) is [0,128,0,255]
25 PASS getPixel(1,1) is [0,128,0,255] 29 PASS getPixel(1,1) is [0,128,0,255]
26 PASS getPixel(98,1) is [0,128,0,255] 30 PASS getPixel(98,1) is [0,128,0,255]
27 PASS getPixel(1,48) is [0,128,0,255] 31 PASS getPixel(1,48) is [0,128,0,255]
28 PASS getPixel(98,48) is [0,128,0,255] 32 PASS getPixel(98,48) is [0,128,0,255]
29 PASS successfullyParsed is true 33 PASS successfullyParsed is true
30 34
31 TEST COMPLETE 35 TEST COMPLETE
32 36
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/canvas-pattern-behaviour.js ('k') | LayoutTests/fast/canvas/canvas-putImageData.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698