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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dom/SVGMatrix-expected.txt

Issue 2741153003: Convert LayoutTests/svg/dom/*.html js-tests.js to testharness.js based tests. (Closed)
Patch Set: Align with review comments Created 3 years, 9 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
(Empty)
1 This test checks the SVGMatrix API
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6
7 Check initial matrix values
8 PASS matrix.a is 1
9 PASS matrix.b is 0
10 PASS matrix.c is 0
11 PASS matrix.d is 1
12 PASS matrix.e is 0
13 PASS matrix.f is 0
14
15 Check assigning matrices
16 PASS matrix.a = 2 is 2
17 PASS matrix.f = 200 is 200
18
19 Check assigning invalid matrices
20 PASS matrix.a = matrix is matrix
21 PASS matrix.a is NaN
22 PASS matrix.a = 0 is 0
23 PASS matrix.a = svgElement is svgElement
24 PASS matrix.a is NaN
25 PASS matrix.a = 0 is 0
26 PASS matrix.a = 'aString' is 'aString'
27 PASS matrix.a is NaN
28 PASS matrix.a = 2 is 2
29 PASS matrix.b = matrix is matrix
30 PASS matrix.b is NaN
31 PASS matrix.b = 0 is 0
32 PASS matrix.b = svgElement is svgElement
33 PASS matrix.b is NaN
34 PASS matrix.b = 0 is 0
35 PASS matrix.b = 'aString' is 'aString'
36 PASS matrix.b is NaN
37 PASS matrix.b = 0 is 0
38 PASS matrix.c = matrix is matrix
39 PASS matrix.c is NaN
40 PASS matrix.c = 0 is 0
41 PASS matrix.c = svgElement is svgElement
42 PASS matrix.c is NaN
43 PASS matrix.c = 0 is 0
44 PASS matrix.c = 'aString' is 'aString'
45 PASS matrix.c is NaN
46 PASS matrix.c = 0 is 0
47 PASS matrix.d = matrix is matrix
48 PASS matrix.d is NaN
49 PASS matrix.d = 0 is 0
50 PASS matrix.d = svgElement is svgElement
51 PASS matrix.d is NaN
52 PASS matrix.d = 0 is 0
53 PASS matrix.d = 'aString' is 'aString'
54 PASS matrix.d is NaN
55 PASS matrix.d = 1 is 1
56 PASS matrix.e = matrix is matrix
57 PASS matrix.e is NaN
58 PASS matrix.e = 0 is 0
59 PASS matrix.e = svgElement is svgElement
60 PASS matrix.e is NaN
61 PASS matrix.e = 0 is 0
62 PASS matrix.e = 'aString' is 'aString'
63 PASS matrix.e is NaN
64 PASS matrix.e = 0 is 0
65 PASS matrix.f = matrix is matrix
66 PASS matrix.f is NaN
67 PASS matrix.f = 0 is 0
68 PASS matrix.f = svgElement is svgElement
69 PASS matrix.f is NaN
70 PASS matrix.f = 0 is 0
71 PASS matrix.f = 'aString' is 'aString'
72 PASS matrix.f is NaN
73 PASS matrix.f = 200 is 200
74
75 Check that the matrix is still containing the correct values
76 PASS matrix.a is 2
77 PASS matrix.b is 0
78 PASS matrix.c is 0
79 PASS matrix.d is 1
80 PASS matrix.e is 0
81 PASS matrix.f is 200
82
83 Check assigning null works as expected
84 PASS matrix.f = null is null
85 PASS matrix.a is 2
86 PASS matrix.b is 0
87 PASS matrix.c is 0
88 PASS matrix.d is 1
89 PASS matrix.e is 0
90 PASS matrix.f is 0
91
92 Check calling 'multiply' with invalid arguments
93 PASS matrix.multiply() threw exception TypeError: Failed to execute 'multiply' o n 'SVGMatrix': 1 argument required, but only 0 present..
94 PASS matrix.multiply(true) threw exception TypeError: Failed to execute 'multipl y' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'..
95 PASS matrix.multiply(2) threw exception TypeError: Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'..
96 PASS matrix.multiply('aString') threw exception TypeError: Failed to execute 'mu ltiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'..
97 PASS matrix.multiply(svgElement) threw exception TypeError: Failed to execute 'm ultiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'..
98
99 Check calling 'translate' with invalid arguments
100 PASS matrix.translate() threw exception TypeError: Failed to execute 'translate' on 'SVGMatrix': 2 arguments required, but only 0 present..
101 PASS matrix.translate(true) threw exception TypeError: Failed to execute 'transl ate' on 'SVGMatrix': 2 arguments required, but only 1 present..
102 PASS matrix.translate(2) threw exception TypeError: Failed to execute 'translate ' on 'SVGMatrix': 2 arguments required, but only 1 present..
103 PASS matrix.translate('aString') threw exception TypeError: Failed to execute 't ranslate' on 'SVGMatrix': 2 arguments required, but only 1 present..
104 PASS matrix.translate(svgElement) threw exception TypeError: Failed to execute ' translate' on 'SVGMatrix': 2 arguments required, but only 1 present..
105 PASS matrix.translate('aString', 'aString') is non-null.
106 PASS matrix.translate(svgElement, svgElement) is non-null.
107 PASS matrix.translate(2, 'aString') is non-null.
108 PASS matrix.translate(2, svgElement) is non-null.
109 PASS matrix.translate('aString', 2) is non-null.
110 PASS matrix.translate(svgElement, 2) is non-null.
111
112 Check calling 'scale' with invalid arguments
113 PASS matrix.scale() threw exception TypeError: Failed to execute 'scale' on 'SVG Matrix': 1 argument required, but only 0 present..
114 PASS matrix.scale('aString') is non-null.
115 PASS matrix.scale(svgElement) is non-null.
116
117 Check calling 'scaleNonUniform' with invalid arguments
118 PASS matrix.scaleNonUniform() threw exception TypeError: Failed to execute 'scal eNonUniform' on 'SVGMatrix': 2 arguments required, but only 0 present..
119 PASS matrix.scaleNonUniform(true) threw exception TypeError: Failed to execute ' scaleNonUniform' on 'SVGMatrix': 2 arguments required, but only 1 present..
120 PASS matrix.scaleNonUniform(2) threw exception TypeError: Failed to execute 'sca leNonUniform' on 'SVGMatrix': 2 arguments required, but only 1 present..
121 PASS matrix.scaleNonUniform('aString') threw exception TypeError: Failed to exec ute 'scaleNonUniform' on 'SVGMatrix': 2 arguments required, but only 1 present..
122 PASS matrix.scaleNonUniform(svgElement) threw exception TypeError: Failed to exe cute 'scaleNonUniform' on 'SVGMatrix': 2 arguments required, but only 1 present. .
123 PASS matrix.scaleNonUniform('aString', 'aString') is non-null.
124 PASS matrix.scaleNonUniform(svgElement, svgElement) is non-null.
125 PASS matrix.scaleNonUniform(2, 'aString') is non-null.
126 PASS matrix.scaleNonUniform(2, svgElement) is non-null.
127 PASS matrix.scaleNonUniform('aString', 2) is non-null.
128 PASS matrix.scaleNonUniform(svgElement, 2) is non-null.
129
130 Check calling 'rotate' with invalid arguments
131 PASS matrix.rotate() threw exception TypeError: Failed to execute 'rotate' on 'S VGMatrix': 1 argument required, but only 0 present..
132 PASS matrix.rotate('aString') is non-null.
133 PASS matrix.rotate(svgElement) is non-null.
134
135 Check calling 'rotateFromVector' with invalid arguments
136 PASS matrix.rotateFromVector() threw exception TypeError: Failed to execute 'rot ateFromVector' on 'SVGMatrix': 2 arguments required, but only 0 present..
137 PASS matrix.rotateFromVector(true) threw exception TypeError: Failed to execute 'rotateFromVector' on 'SVGMatrix': 2 arguments required, but only 1 present..
138 PASS matrix.rotateFromVector(2) threw exception TypeError: Failed to execute 'ro tateFromVector' on 'SVGMatrix': 2 arguments required, but only 1 present..
139 PASS matrix.rotateFromVector('aString') threw exception TypeError: Failed to exe cute 'rotateFromVector' on 'SVGMatrix': 2 arguments required, but only 1 present ..
140 PASS matrix.rotateFromVector(svgElement) threw exception TypeError: Failed to ex ecute 'rotateFromVector' on 'SVGMatrix': 2 arguments required, but only 1 presen t..
141 PASS matrix.rotateFromVector('aString', 'aString') is non-null.
142 PASS matrix.rotateFromVector(svgElement, svgElement) is non-null.
143 PASS matrix.rotateFromVector(2, 'aString') is non-null.
144 PASS matrix.rotateFromVector(2, svgElement) is non-null.
145 PASS matrix.rotateFromVector('aString', 2) is non-null.
146 PASS matrix.rotateFromVector(svgElement, 2) is non-null.
147
148 Check calling 'skewX' with invalid arguments
149 PASS matrix.skewX() threw exception TypeError: Failed to execute 'skewX' on 'SVG Matrix': 1 argument required, but only 0 present..
150 PASS matrix.skewX('aString') is non-null.
151 PASS matrix.skewX(svgElement) is non-null.
152
153 Check calling 'skewY' with invalid arguments
154 PASS matrix.skewY() threw exception TypeError: Failed to execute 'skewY' on 'SVG Matrix': 1 argument required, but only 0 present..
155 PASS matrix.skewY('aString') is non-null.
156 PASS matrix.skewY(svgElement) is non-null.
157 PASS successfullyParsed is true
158
159 TEST COMPLETE
160
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/dom/SVGMatrix.html ('k') | third_party/WebKit/LayoutTests/svg/dom/SVGNumber.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698