| OLD | NEW |
| 1 This test exercises the CSSMatrix interface | 1 This test exercises the CSSMatrix 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 m is non-null. | 7 PASS m is non-null. |
| 8 PASS new WebKitCSSMatrix() is non-null. | 8 PASS new WebKitCSSMatrix() is non-null. |
| 9 PASS new WebKitCSSMatrix(m) 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. | 10 PASS new WebKitCSSMatrix("matrix(1, 0, 0, 1, 0, 0)") is non-null. |
| 11 PASS new WebKitCSSMatrix("") is non-null. | 11 PASS new WebKitCSSMatrix("") is non-null. |
| 12 PASS new WebKitCSSMatrix("none") is non-null. | 12 PASS new WebKitCSSMatrix("none") is non-null. |
| 13 PASS new WebKitCSSMatrix(" none ") is non-null. | 13 PASS new WebKitCSSMatrix(" none ") is non-null. |
| 14 | 14 |
| 15 Test toString | 15 Test toString |
| 16 PASS a[0] is "matrix" | 16 PASS a[0] is "matrix" |
| 17 PASS parseFloat(a2[0]) is 1 | 17 PASS parseFloat(a2[0]) is 1 |
| 18 PASS parseFloat(a2[1]) is 0 | 18 PASS parseFloat(a2[1]) is 0 |
| 19 PASS parseFloat(a2[2]) is 0 | 19 PASS parseFloat(a2[2]) is 0 |
| 20 PASS parseFloat(a2[3]) is 1 | 20 PASS parseFloat(a2[3]) is 1 |
| 21 PASS parseFloat(a2[4]) is 0 | 21 PASS parseFloat(a2[4]) is 0 |
| 22 PASS parseFloat(a3[0]) is 0 | 22 PASS parseFloat(a3[0]) is 0 |
| 23 PASS a3[1] is "" | 23 PASS a3[1] is "" |
| 24 | 24 |
| 25 Test bad input to string constructor | 25 Test bad input to string constructor |
| 26 PASS new WebKitCSSMatrix("banana") threw exception SyntaxError: Failed to constr
uct 'WebKitCSSMatrix': Failed to parse 'banana'.. | 26 PASS new WebKitCSSMatrix("banana") threw exception SyntaxError: Failed to constr
uct 'DOMMatrix': Failed to parse 'banana'.. |
| 27 | 27 |
| 28 Test attributes on default matrix | 28 Test attributes on default matrix |
| 29 PASS m.a is 1 | 29 PASS m.a is 1 |
| 30 PASS m.b is 0 | 30 PASS m.b is 0 |
| 31 PASS m.c is 0 | 31 PASS m.c is 0 |
| 32 PASS m.d is 1 | 32 PASS m.d is 1 |
| 33 PASS m.e is 0 | 33 PASS m.e is 0 |
| 34 PASS m.f is 0 | 34 PASS m.f is 0 |
| 35 | 35 |
| 36 Test attributes on custom matrix | 36 Test attributes on custom matrix |
| (...skipping 14 matching lines...) Expand all Loading... |
| 51 | 51 |
| 52 Test setMatrixValue - set to translate(10px, 20px) scale(2, 3) | 52 Test setMatrixValue - set to translate(10px, 20px) scale(2, 3) |
| 53 PASS m.a is 2 | 53 PASS m.a is 2 |
| 54 PASS m.b is 0 | 54 PASS m.b is 0 |
| 55 PASS m.c is 0 | 55 PASS m.c is 0 |
| 56 PASS m.d is 3 | 56 PASS m.d is 3 |
| 57 PASS m.e is 10 | 57 PASS m.e is 10 |
| 58 PASS m.f is 20 | 58 PASS m.f is 20 |
| 59 | 59 |
| 60 Test throwing exception from setMatrixValue | 60 Test throwing exception from setMatrixValue |
| 61 PASS m.setMatrixValue("banana") threw exception SyntaxError: Failed to execute '
setMatrixValue' on 'WebKitCSSMatrix': Failed to parse 'banana'.. | 61 PASS m.setMatrixValue("banana") threw exception SyntaxError: Failed to execute '
setMatrixValue' on 'DOMMatrix': Failed to parse 'banana'.. |
| 62 PASS m.setMatrixValue("translate(10em, 20%)") threw exception SyntaxError: Faile
d to execute 'setMatrixValue' on 'WebKitCSSMatrix': The transformation depends o
n the box size, which is not supported.. | 62 PASS m.setMatrixValue("translate(10em, 20%)") threw exception SyntaxError: Faile
d to execute 'setMatrixValue' on 'DOMMatrix': Lengths must be absolute, not rela
tive. |
| 63 PASS m.setMatrixValue("translate(10px, 20px) scale()") threw exception SyntaxErr
or: Failed to execute 'setMatrixValue' on 'WebKitCSSMatrix': Failed to parse 'tr
anslate(10px, 20px) scale()'.. | 63 PASS m.setMatrixValue("translate(10px, 20px) scale()") threw exception SyntaxErr
or: Failed to execute 'setMatrixValue' on 'DOMMatrix': Failed to parse 'translat
e(10px, 20px) scale()'.. |
| 64 | 64 |
| 65 Test attributes on translate() and accumulation | 65 Test attributes on translate() and accumulation |
| 66 PASS m2.a is 1 | 66 PASS m2.a is 1 |
| 67 PASS m2.b is 0 | 67 PASS m2.b is 0 |
| 68 PASS m2.c is 0 | 68 PASS m2.c is 0 |
| 69 PASS m2.d is 1 | 69 PASS m2.d is 1 |
| 70 PASS m2.e is 100 | 70 PASS m2.e is 100 |
| 71 PASS m2.f is 50 | 71 PASS m2.f is 50 |
| 72 | 72 |
| 73 Test immutability of translate | 73 Test immutability of translate |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 PASS tx.e is 100 | 182 PASS tx.e is 100 |
| 183 PASS tx.f is 0 | 183 PASS tx.f is 0 |
| 184 PASS sx.a is 2 | 184 PASS sx.a is 2 |
| 185 PASS sx.b is 0 | 185 PASS sx.b is 0 |
| 186 PASS sx.c is 0 | 186 PASS sx.c is 0 |
| 187 PASS sx.d is 1 | 187 PASS sx.d is 1 |
| 188 PASS sx.e is 0 | 188 PASS sx.e is 0 |
| 189 PASS sx.f is 0 | 189 PASS sx.f is 0 |
| 190 | 190 |
| 191 Test multiply with missing argument | 191 Test multiply with missing argument |
| 192 PASS m2 is null | 192 PASS m2.a is 1 |
| 193 PASS m2.b is 2 |
| 194 PASS m2.c is 3 |
| 195 PASS m2.d is 4 |
| 196 PASS m2.e is 5 |
| 197 PASS m2.f is 6 |
| 193 | 198 |
| 194 Test inverse | 199 Test inverse |
| 195 PASS parseFloat(m2.a) is 0.5 | 200 PASS parseFloat(m2.a) is 0.5 |
| 196 PASS parseFloat(m2.b) is 0 | 201 PASS parseFloat(m2.b) is 0 |
| 197 PASS parseFloat(m2.c) is 0 | 202 PASS parseFloat(m2.c) is 0 |
| 198 PASS parseFloat(m2.d) is 0.5 | 203 PASS parseFloat(m2.d) is 0.5 |
| 199 PASS parseFloat(m2.e) is -5 | 204 PASS parseFloat(m2.e) is -5 |
| 200 PASS parseFloat(m2.f) is -10 | 205 PASS parseFloat(m2.f) is -10 |
| 201 | 206 |
| 202 Test immutability of inverse | 207 Test immutability of inverse |
| 203 PASS parseFloat(m.a) is 2 | 208 PASS parseFloat(m.a) is 2 |
| 204 PASS parseFloat(m.b) is 0 | 209 PASS parseFloat(m.b) is 0 |
| 205 PASS parseFloat(m.c) is 0 | 210 PASS parseFloat(m.c) is 0 |
| 206 PASS parseFloat(m.d) is 2 | 211 PASS parseFloat(m.d) is 2 |
| 207 PASS parseFloat(m.e) is 10 | 212 PASS parseFloat(m.e) is 10 |
| 208 PASS parseFloat(m.f) is 20 | 213 PASS parseFloat(m.f) is 20 |
| 209 | 214 |
| 210 Test throwing exception from inverse | 215 Test not invertible matrix |
| 211 PASS m.inverse() threw exception NotSupportedError: Failed to execute 'inverse'
on 'WebKitCSSMatrix': The matrix is not invertable.. | 216 PASS m2.a is NaN |
| 217 PASS m2.b is NaN |
| 218 PASS m2.c is NaN |
| 219 PASS m2.d is NaN |
| 220 PASS m2.e is NaN |
| 221 PASS m2.f is NaN |
| 222 |
| 223 Test immutability of inverse |
| 224 PASS m.a is 0 |
| 225 PASS m.b is 0 |
| 226 PASS m.c is 0 |
| 227 PASS m.d is 0 |
| 228 PASS m.e is 0 |
| 229 PASS m.f is 0 |
| 212 | 230 |
| 213 PASS successfullyParsed is true | 231 PASS successfullyParsed is true |
| 214 | 232 |
| 215 TEST COMPLETE | 233 TEST COMPLETE |
| 216 | 234 |
| OLD | NEW |