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

Side by Side Diff: LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate-expected.txt

Issue 446803002: Implement translate() and translateSelf() in DOMMatrix. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
(Empty)
1 # DOMMatrix.translate(tx, ty)
2 PASS matrix.is2D is true
3 PASS matrix.isIdentity is true
4 PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
5 PASS result.is2D is true
6 PASS result.isIdentity is false
7 PASS compareMatrix(result, [ 1, 0, 0, 2, 0, 1, 0, 3, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
8 PASS matrix.is2D is true
9 PASS matrix.isIdentity is true
10 PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
11
12 # DOMMatrix.translate(tx, ty) with non-identity
13 PASS matrix.is2D is true
14 PASS matrix.isIdentity is false
15 PASS compareMatrix(matrix, [ 1, 0, 0, 2, 0, 1, 0, 3, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
16 PASS result.is2D is true
17 PASS result.isIdentity is false
18 PASS compareMatrix(result, [ 1, 0, 0, 6, 0, 1, 0, 5, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
19 PASS matrix.is2D is true
20 PASS matrix.isIdentity is false
21 PASS compareMatrix(matrix, [ 1, 0, 0, 2, 0, 1, 0, 3, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
22
23 # DOMMatrix.translateSelf(tx, ty)
24 PASS matrix.is2D is true
25 PASS matrix.isIdentity is true
26 PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
27 PASS result.is2D is true
28 PASS result.isIdentity is false
29 PASS compareMatrix(result, [ 1, 0, 0, 4, 0, 1, 0, 2, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
30 PASS matrix.is2D is true
31 PASS matrix.isIdentity is false
32 PASS compareMatrix(matrix, [ 1, 0, 0, 4, 0, 1, 0, 2, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
33
34 # DOMMatrix.translate(tx, ty, tz)
35 PASS matrix.is2D is true
36 PASS matrix.isIdentity is true
37 PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
38 PASS result.is2D is false
39 PASS result.isIdentity is false
40 PASS compareMatrix(result, [ 1, 0, 0, 2, 0, 1, 0, 3, 0, 0, 1, 4, 0, 0, 0, 1 ]) is true
41 PASS matrix.is2D is true
42 PASS matrix.isIdentity is true
43 PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
44
45 # DOMMatrix.translate(tx, ty, tz) with non-identity
46 PASS matrix.is2D is true
47 PASS matrix.isIdentity is false
48 PASS compareMatrix(matrix, [ 1, 0, 0, 2, 0, 1, 0, 3, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
49 PASS result.is2D is false
50 PASS result.isIdentity is false
51 PASS compareMatrix(result, [ 1, 0, 0, 6, 0, 1, 0, 5, 0, 0, 1, 3, 0, 0, 0, 1 ]) is true
52 PASS matrix.is2D is true
53 PASS matrix.isIdentity is false
54 PASS compareMatrix(matrix, [ 1, 0, 0, 2, 0, 1, 0, 3, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
55
56 # DOMMatrix.translateSelf(tx, ty, tz)
57 PASS matrix.is2D is true
58 PASS matrix.isIdentity is true
59 PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]) is true
60 PASS result.is2D is false
61 PASS result.isIdentity is false
62 PASS compareMatrix(result, [ 1, 0, 0, 4, 0, 1, 0, 2, 0, 0, 1, 3, 0, 0, 0, 1 ]) is true
63 PASS matrix.is2D is false
64 PASS matrix.isIdentity is false
65 PASS compareMatrix(matrix, [ 1, 0, 0, 4, 0, 1, 0, 2, 0, 0, 1, 3, 0, 0, 0, 1 ]) is true
66
67 # DOMMatrix.translateSelf(tx, ty, tz) Homogeneous Coordinates
68 PASS matrix.is2D is true
69 PASS matrix.isIdentity is true
70 PASS matrix.is2D is false
71 PASS matrix.isIdentity is false
72 PASS compareMatrix(matrix, [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 2, 3, 4, 7 ]) is true
73 PASS matrix.is2D is false
74 PASS matrix.isIdentity is false
75 PASS compareMatrix(matrix, [ 1, 0, 0, 7, 0, 1, 0, -8, 0, 0, 1, 2, 2, 3, 4, 5 ]) is true
76
77 PASS successfullyParsed is true
78
79 TEST COMPLETE
80
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698