Merge "[WK2] Revert patch / set a limit of layer count and atlas size." into 2.0_beta
[framework/web/webkit-efl.git] / LayoutTests / transforms / cssmatrix-2d-interface-expected.txt
1 This test exercises the CSSMatrix interface
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 CSSMatrix constructors
7 PASS m is non-null.
8 PASS new WebKitCSSMatrix() is non-null.
9 PASS new WebKitCSSMatrix(m) is non-null.
10 PASS new WebKitCSSMatrix("matrix(1, 0, 0, 1, 0, 0)") is non-null.
11 PASS new WebKitCSSMatrix("") is non-null.
12 PASS new WebKitCSSMatrix("none") is non-null.
13 PASS new WebKitCSSMatrix("   none   ") is non-null.
14
15 Test toString
16 PASS a[0] is "matrix"
17 PASS parseFloat(a2[0]) is 1
18 PASS parseFloat(a2[1]) is 0
19 PASS parseFloat(a2[2]) is 0
20 PASS parseFloat(a2[3]) is 1
21 PASS parseFloat(a2[4]) is 0
22 PASS parseFloat(a3[0]) is 0
23 PASS a3[1] is ""
24
25 Test bad input to string constructor
26 PASS new WebKitCSSMatrix("banana") threw exception Error: SYNTAX_ERR: DOM Exception 12.
27
28 Test attributes on default matrix
29 PASS m.a is 1
30 PASS m.b is 0
31 PASS m.c is 0
32 PASS m.d is 1
33 PASS m.e is 0
34 PASS m.f is 0
35
36 Test attributes on custom matrix
37 PASS m.a is 11
38 PASS m.b is 12
39 PASS m.c is 21
40 PASS m.d is 22
41 PASS m.e is 41
42 PASS m.f is 42
43
44 Test setMatrixValue - set to matrix()
45 PASS m.a is 11
46 PASS m.b is 12
47 PASS m.c is 21
48 PASS m.d is 22
49 PASS m.e is 41
50 PASS m.f is 42
51
52 Test setMatrixValue - set to translate(10px, 20px) scale(2, 3)
53 PASS m.a is 2
54 PASS m.b is 0
55 PASS m.c is 0
56 PASS m.d is 3
57 PASS m.e is 10
58 PASS m.f is 20
59
60 Test throwing exception from setMatrixValue
61 PASS m.setMatrixValue("banana") threw exception Error: SYNTAX_ERR: DOM Exception 12.
62 PASS m.setMatrixValue("translate(10em, 20%)") threw exception Error: SYNTAX_ERR: DOM Exception 12.
63 PASS m.setMatrixValue("translate(10px, 20px) scale()") threw exception Error: SYNTAX_ERR: DOM Exception 12.
64
65 Test attributes on translate() and accumulation
66 PASS m2.a is 1
67 PASS m2.b is 0
68 PASS m2.c is 0
69 PASS m2.d is 1
70 PASS m2.e is 100
71 PASS m2.f is 50
72
73 Test immutability of translate
74 PASS parseFloat(m.a) is 1
75 PASS parseFloat(m.b) is 0
76 PASS parseFloat(m.c) is 0
77 PASS parseFloat(m.d) is 1
78 PASS parseFloat(m.e) is 0
79 PASS parseFloat(m.f) is 0
80
81 Test attributes on scale()
82 PASS m3.a is 5
83 PASS m3.b is 0
84 PASS m3.c is 0
85 PASS m3.d is 5
86 PASS m3.e is 100
87 PASS m3.f is 50
88
89 Test immutability of scale()
90 PASS parseFloat(m2.a) is 1
91 PASS parseFloat(m2.b) is 0
92 PASS parseFloat(m2.c) is 0
93 PASS parseFloat(m2.d) is 1
94 PASS parseFloat(m2.e) is 100
95 PASS parseFloat(m2.f) is 50
96
97 Test attributes on non-uniform scale()
98 PASS m4.a is 10
99 PASS m4.b is 0
100 PASS m4.c is 0
101 PASS m4.d is 5
102 PASS m4.e is 100
103 PASS m4.f is 50
104
105 Test immutability of non-uniform scale()
106 PASS parseFloat(m3.a) is 5
107 PASS parseFloat(m3.b) is 0
108 PASS parseFloat(m3.c) is 0
109 PASS parseFloat(m3.d) is 5
110 PASS parseFloat(m3.e) is 100
111 PASS parseFloat(m3.f) is 50
112
113 Test rotate
114 PASS parseFloat(m2.a.toPrecision(6)) is 0.984808
115 PASS parseFloat(m2.b.toPrecision(6)) is 0.173648
116 PASS parseFloat(m2.c.toPrecision(6)) is -0.173648
117 PASS parseFloat(m2.d.toPrecision(6)) is 0.984808
118 PASS m.e is 0
119 PASS m.f is 0
120
121 Test immutability of rotate
122 PASS parseFloat(m.a) is 1
123 PASS parseFloat(m.b) is 0
124 PASS parseFloat(m.c) is 0
125 PASS parseFloat(m.d) is 1
126 PASS parseFloat(m.e) is 0
127 PASS parseFloat(m.f) is 0
128
129 Test skew in horizontal direction
130 PASS parseFloat(m2.a) is 1
131 PASS parseFloat(m2.b) is 0
132 PASS parseFloat(m2.c.toPrecision(6)) is 0.176327
133 PASS parseFloat(m2.d) is 1
134 PASS parseFloat(m2.e) is 0
135 PASS parseFloat(m2.f) is 0
136
137 Test immutability of horizontal skew
138 PASS parseFloat(m.a) is 1
139 PASS parseFloat(m.b) is 0
140 PASS parseFloat(m.c) is 0
141 PASS parseFloat(m.d) is 1
142 PASS parseFloat(m.e) is 0
143 PASS parseFloat(m.f) is 0
144
145 Test skew in vertical direction
146 PASS parseFloat(m2.a) is 1
147 PASS parseFloat(m2.b.toPrecision(6)) is 0.700208
148 PASS parseFloat(m2.c) is 0
149 PASS parseFloat(m2.d) is 1
150 PASS parseFloat(m2.e) is 0
151 PASS parseFloat(m2.f) is 0
152
153 Test immutability of vertical skew
154 PASS parseFloat(m.a) is 1
155 PASS parseFloat(m.b) is 0
156 PASS parseFloat(m.c) is 0
157 PASS parseFloat(m.d) is 1
158 PASS parseFloat(m.e) is 0
159 PASS parseFloat(m.f) is 0
160
161 Test multiply
162 PASS parseFloat(m3.a) is 31
163 PASS parseFloat(m3.b) is 46
164 PASS parseFloat(m3.c) is 39
165 PASS parseFloat(m3.d) is 58
166 PASS parseFloat(m3.e) is 52
167 PASS parseFloat(m3.f) is 76
168
169 Test that multiply works in the right direction
170 PASS m.a is 2
171 PASS m.b is 0
172 PASS m.c is 0
173 PASS m.d is 1
174 PASS m.e is 100
175 PASS m.f is 0
176
177 Test immutability of multiply
178 PASS tx.a is 1
179 PASS tx.b is 0
180 PASS tx.c is 0
181 PASS tx.d is 1
182 PASS tx.e is 100
183 PASS tx.f is 0
184 PASS sx.a is 2
185 PASS sx.b is 0
186 PASS sx.c is 0
187 PASS sx.d is 1
188 PASS sx.e is 0
189 PASS sx.f is 0
190
191 Test multiply with missing argument
192 PASS m2 is null
193
194 Test inverse
195 PASS parseFloat(m2.a) is 0.5
196 PASS parseFloat(m2.b) is 0
197 PASS parseFloat(m2.c) is 0
198 PASS parseFloat(m2.d) is 0.5
199 PASS parseFloat(m2.e) is -5
200 PASS parseFloat(m2.f) is -10
201
202 Test immutability of inverse
203 PASS parseFloat(m.a) is 2
204 PASS parseFloat(m.b) is 0
205 PASS parseFloat(m.c) is 0
206 PASS parseFloat(m.d) is 2
207 PASS parseFloat(m.e) is 10
208 PASS parseFloat(m.f) is 20
209
210 Test throwing exception from inverse
211 PASS m.inverse() threw exception Error: NOT_SUPPORTED_ERR: DOM Exception 9.
212
213 PASS successfullyParsed is true
214
215 TEST COMPLETE
216