| OLD | NEW |
| (Empty) |
| 1 This test covers the behaviour of pattern use and construction | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS context.createPattern(green1x1, null) did not throw an exception | |
| 7 PASS getPixel(1,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] | |
| 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'.. | |
| 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'.. | |
| 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': The provided value is not of ty
pe '(CSSImageValue or HTMLImageElement or HTMLVideoElement or HTMLCanvasElement
or ImageBitmap or OffscreenCanvas)'. | |
| 16 PASS context.createPattern(undefined, '') threw exception TypeError: Failed to e
xecute 'createPattern' on 'CanvasRenderingContext2D': The provided value is not
of type '(CSSImageValue or HTMLImageElement or HTMLVideoElement or HTMLCanvasEle
ment or ImageBitmap or OffscreenCanvas)'. | |
| 17 PASS context.createPattern({}, '') threw exception TypeError: Failed to execute
'createPattern' on 'CanvasRenderingContext2D': The provided value is not of type
'(CSSImageValue or HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or
ImageBitmap or OffscreenCanvas)'. | |
| 18 PASS context.createPattern([], '') threw exception TypeError: Failed to execute
'createPattern' on 'CanvasRenderingContext2D': The provided value is not of type
'(CSSImageValue or HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or
ImageBitmap or OffscreenCanvas)'. | |
| 19 PASS context.createPattern(green1x1, '') did not throw an exception | |
| 20 PASS getPixel(1,1) is [0,128,0,255] | |
| 21 PASS getPixel(98,1) is [0,128,0,255] | |
| 22 PASS getPixel(1,48) is [0,128,0,255] | |
| 23 PASS getPixel(98,48) is [0,128,0,255] | |
| 24 PASS context.createPattern(green1x1, {toString:function(){ return 'repeat';}}) d
id not throw an exception | |
| 25 PASS getPixel(1,1) is [0,128,0,255] | |
| 26 PASS getPixel(98,1) is [0,128,0,255] | |
| 27 PASS getPixel(1,48) is [0,128,0,255] | |
| 28 PASS getPixel(98,48) is [0,128,0,255] | |
| 29 PASS getPixel(1,1) is [0,128,0,255] | |
| 30 PASS getPixel(98,1) is [0,128,0,255] | |
| 31 PASS getPixel(1,48) is [0,128,0,255] | |
| 32 PASS getPixel(98,48) is [0,128,0,255] | |
| 33 PASS successfullyParsed is true | |
| 34 | |
| 35 TEST COMPLETE | |
| 36 | |
| OLD | NEW |