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

Side by Side Diff: third_party/WebKit/LayoutTests/transforms/cssmatrix-2d-interface-expected.txt

Issue 2709763004: Make WebKitCSSMatrix an alias of DOMMatrix (Closed)
Patch Set: WIP : Fixing test. 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
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
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
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: Failed to execute 'inverse' on 'WebKitCSSMatrix': The matrix is not invertable.. 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698