| 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: An invalid or il
legal string was specified.. | 26 PASS new WebKitCSSMatrix("banana") threw exception SyntaxError: Failed to constr
uct 'WebKitCSSMatrix': 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: An invalid or illeg
al string was specified.. | 61 PASS m.setMatrixValue("banana") threw exception SyntaxError: Failed to execute '
setMatrixValue' on 'WebKitCSSMatrix': Failed to parse 'banana'.. |
| 62 PASS m.setMatrixValue("translate(10em, 20%)") threw exception SyntaxError: An in
valid or illegal string was specified.. | 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.. |
| 63 PASS m.setMatrixValue("translate(10px, 20px) scale()") threw exception SyntaxErr
or: An invalid or illegal string was specified.. | 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()'.. |
| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 201 |
| 202 Test immutability of inverse | 202 Test immutability of inverse |
| 203 PASS parseFloat(m.a) is 2 | 203 PASS parseFloat(m.a) is 2 |
| 204 PASS parseFloat(m.b) is 0 | 204 PASS parseFloat(m.b) is 0 |
| 205 PASS parseFloat(m.c) is 0 | 205 PASS parseFloat(m.c) is 0 |
| 206 PASS parseFloat(m.d) is 2 | 206 PASS parseFloat(m.d) is 2 |
| 207 PASS parseFloat(m.e) is 10 | 207 PASS parseFloat(m.e) is 10 |
| 208 PASS parseFloat(m.f) is 20 | 208 PASS parseFloat(m.f) is 20 |
| 209 | 209 |
| 210 Test throwing exception from inverse | 210 Test throwing exception from inverse |
| 211 PASS m.inverse() threw exception NotSupportedError: The implementation did not s
upport the requested type of object or operation.. | 211 PASS m.inverse() threw exception NotSupportedError: Failed to execute 'inverse'
on 'WebKitCSSMatrix': The matrix is not invertable.. |
| 212 | 212 |
| 213 PASS successfullyParsed is true | 213 PASS successfullyParsed is true |
| 214 | 214 |
| 215 TEST COMPLETE | 215 TEST COMPLETE |
| 216 | 216 |
| OLD | NEW |