summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/canvas/canvas-path-addpath-expected.txt
blob: 9ccba9ff0245bb1cd711e605b0eff0759a269078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Test addPath() method.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


Test addPath() with transform as identity matrix.
PASS imgdata[4] is 255
PASS imgdata[5] is 255
PASS imgdata[6] is 0
PASS imgdata[7] is 255

Test addPath() with transform as translate(100, -100).
PASS imgdata[4] is 255
PASS imgdata[5] is 255
PASS imgdata[6] is 0
PASS imgdata[7] is 255

Test addPath() with non-invertible transform.
PASS imgdata[4] is not 255
PASS imgdata[5] is not 255
PASS imgdata[6] is 0
PASS imgdata[7] is not 255

Test addPath() with transform as null or invalid type.
PASS p7.addPath(p8, []) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': parameter 2 is not of type 'SVGMatrix'..
PASS p7.addPath(p8, {}) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': parameter 2 is not of type 'SVGMatrix'..
PASS imgdata[4] is 255
PASS imgdata[5] is 0
PASS imgdata[6] is 0
PASS imgdata[7] is 255

Test addPath() with transform omitted.
PASS imgdata[0] is 255
PASS imgdata[1] is 0
PASS imgdata[2] is 0
PASS imgdata[3] is 255

Test addPath() with path as null and invalid type
PASS p7.addPath(null, m) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': parameter 1 is not of type 'Path2D'..
PASS p7.addPath([], m) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': parameter 1 is not of type 'Path2D'..
PASS p7.addPath({}, m) threw exception TypeError: Failed to execute 'addPath' on 'Path2D': parameter 1 is not of type 'Path2D'..

PASS successfullyParsed is true

TEST COMPLETE