OLD | NEW |
1 This test exercises the CSSMatrix 3D interface | 1 This test exercises the CSSMatrix 3D interface |
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 CSSMatrix constructors | 6 CSSMatrix constructors |
7 PASS default constructor | 7 PASS default constructor |
8 PASS object constructor | 8 PASS object constructor |
9 PASS string constructor | 9 PASS string constructor |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 PASS parseFloat(a2[9]) is 0 | 22 PASS parseFloat(a2[9]) is 0 |
23 PASS parseFloat(a2[10]) is 1 | 23 PASS parseFloat(a2[10]) is 1 |
24 PASS parseFloat(a2[11]) is 0 | 24 PASS parseFloat(a2[11]) is 0 |
25 PASS parseFloat(a2[12]) is 0 | 25 PASS parseFloat(a2[12]) is 0 |
26 PASS parseFloat(a2[13]) is 0 | 26 PASS parseFloat(a2[13]) is 0 |
27 PASS parseFloat(a2[14]) is 0 | 27 PASS parseFloat(a2[14]) is 0 |
28 PASS parseFloat(a3[0]) is 1 | 28 PASS parseFloat(a3[0]) is 1 |
29 PASS a3[1] is "" | 29 PASS a3[1] is "" |
30 | 30 |
31 Test bad input to string constructor | 31 Test bad input to string constructor |
32 PASS new WebKitCSSMatrix("banana") threw exception SyntaxError: Failed to constr
uct 'WebKitCSSMatrix': Failed to parse 'banana'.. | 32 PASS new WebKitCSSMatrix("banana") threw exception SyntaxError: Failed to constr
uct 'DOMMatrix': Failed to parse 'banana'.. |
33 | 33 |
34 Test attributes on default matrix | 34 Test attributes on default matrix |
35 PASS m.m11 is 1 | 35 PASS m.m11 is 1 |
36 PASS m.m12 is 0 | 36 PASS m.m12 is 0 |
37 PASS m.m13 is 0 | 37 PASS m.m13 is 0 |
38 PASS m.m14 is 0 | 38 PASS m.m14 is 0 |
39 PASS m.m21 is 0 | 39 PASS m.m21 is 0 |
40 PASS m.m22 is 1 | 40 PASS m.m22 is 1 |
41 PASS m.m23 is 0 | 41 PASS m.m23 is 0 |
42 PASS m.m24 is 0 | 42 PASS m.m24 is 0 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 PASS m.m31 is 0 | 97 PASS m.m31 is 0 |
98 PASS m.m32 is 0 | 98 PASS m.m32 is 0 |
99 PASS m.m33 is 4 | 99 PASS m.m33 is 4 |
100 PASS m.m34 is 0 | 100 PASS m.m34 is 0 |
101 PASS m.m41 is 10 | 101 PASS m.m41 is 10 |
102 PASS m.m42 is 20 | 102 PASS m.m42 is 20 |
103 PASS m.m43 is 30 | 103 PASS m.m43 is 30 |
104 PASS m.m44 is 1 | 104 PASS m.m44 is 1 |
105 | 105 |
106 Test throwing exception from setMatrixValue | 106 Test throwing exception from setMatrixValue |
107 PASS m.setMatrixValue("banana") threw exception SyntaxError: Failed to execute '
setMatrixValue' on 'WebKitCSSMatrix': Failed to parse 'banana'.. | 107 PASS m.setMatrixValue("banana") threw exception SyntaxError: Failed to execute '
setMatrixValue' on 'DOMMatrix': Failed to parse 'banana'.. |
108 PASS m.setMatrixValue("translate3d(10em, 20%, 40)") threw exception SyntaxError:
Failed to execute 'setMatrixValue' on 'WebKitCSSMatrix': Failed to parse 'trans
late3d(10em, 20%, 40)'.. | 108 PASS m.setMatrixValue("translate3d(10em, 20%, 40)") threw exception SyntaxError:
Failed to execute 'setMatrixValue' on 'DOMMatrix': Failed to parse 'translate3d
(10em, 20%, 40)'.. |
109 PASS m.setMatrixValue("translate3d(10px, 20px, 30px) scale3d()") threw exception
SyntaxError: Failed to execute 'setMatrixValue' on 'WebKitCSSMatrix': Failed to
parse 'translate3d(10px, 20px, 30px) scale3d()'.. | 109 PASS m.setMatrixValue("translate3d(10px, 20px, 30px) scale3d()") threw exception
SyntaxError: Failed to execute 'setMatrixValue' on 'DOMMatrix': Failed to parse
'translate3d(10px, 20px, 30px) scale3d()'.. |
110 | 110 |
111 Test multiply | 111 Test multiply |
112 PASS parseFloat(m3.m11) is 538 | 112 PASS parseFloat(m3.m11) is 538 |
113 PASS parseFloat(m3.m12) is 612 | 113 PASS parseFloat(m3.m12) is 612 |
114 PASS parseFloat(m3.m13) is 686 | 114 PASS parseFloat(m3.m13) is 686 |
115 PASS parseFloat(m3.m14) is 760 | 115 PASS parseFloat(m3.m14) is 760 |
116 PASS parseFloat(m3.m21) is 650 | 116 PASS parseFloat(m3.m21) is 650 |
117 PASS parseFloat(m3.m22) is 740 | 117 PASS parseFloat(m3.m22) is 740 |
118 PASS parseFloat(m3.m23) is 830 | 118 PASS parseFloat(m3.m23) is 830 |
119 PASS parseFloat(m3.m24) is 920 | 119 PASS parseFloat(m3.m24) is 920 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 PASS m.m34 is 0 | 360 PASS m.m34 is 0 |
361 PASS m.m41 is 0 | 361 PASS m.m41 is 0 |
362 PASS m.m42 is 0 | 362 PASS m.m42 is 0 |
363 PASS m.m43 is 0 | 363 PASS m.m43 is 0 |
364 PASS m.m44 is 1 | 364 PASS m.m44 is 1 |
365 | 365 |
366 PASS successfullyParsed is true | 366 PASS successfullyParsed is true |
367 | 367 |
368 TEST COMPLETE | 368 TEST COMPLETE |
369 | 369 |
OLD | NEW |