OLD | NEW |
| (Empty) |
1 timing_test(function() { | |
2 at(0 * 1000, function() { | |
3 assert_styles(".anim",{'transform':'matrix(1, 0, 0, 1, 0, 0)'}); | |
4 }); | |
5 at(0.4 * 1000, function() { | |
6 assert_styles(".anim", [ | |
7 {'transform':'matrix(1, 0, 0, 1, 40, 0)'}, | |
8 {'transform':'matrix(0.9511, 0.309, -0.309, 0.9511, 0, 0)'}, | |
9 {'transform':'matrix(0.9511, 0.309, -0.309, 0.9511, 40, 0)'}, | |
10 {'transform':'matrix(0.9511, 0.309, -0.309, 0.9511, 38.04, 12.36)'}, | |
11 ]); | |
12 }); | |
13 at(0.8 * 1000, function() { | |
14 assert_styles(".anim", [ | |
15 {'transform':'matrix(1, 0, 0, 1, 80, 0)'}, | |
16 {'transform':'matrix(0.809, 0.5878, -0.5878, 0.809, 0, 0)'}, | |
17 {'transform':'matrix(0.809, 0.5878, -0.5878, 0.809, 80, 0)'}, | |
18 {'transform':'matrix(0.809, 0.5878, -0.5878, 0.809, 64.72, 47.02)'}, | |
19 ]); | |
20 }); | |
21 at(1.2000000000000002 * 1000, function() { | |
22 assert_styles(".anim", [ | |
23 {'transform':'matrix(1, 0, 0, 1, 120, 0)'}, | |
24 {'transform':'matrix(0.5878, 0.809, -0.809, 0.5878, 0, 0)'}, | |
25 {'transform':'matrix(0.5878, 0.809, -0.809, 0.5878, 120, 0)'}, | |
26 {'transform':'matrix(0.5878, 0.809, -0.809, 0.5878, 70.53, 97.08)'}, | |
27 ]); | |
28 }); | |
29 at(1.6 * 1000, function() { | |
30 assert_styles(".anim", [ | |
31 {'transform':'matrix(1, 0, 0, 1, 160, 0)'}, | |
32 {'transform':'matrix(0.309, 0.9511, -0.9511, 0.309, 0, 0)'}, | |
33 {'transform':'matrix(0.309, 0.9511, -0.9511, 0.309, 160, 0)'}, | |
34 {'transform':'matrix(0.309, 0.9511, -0.9511, 0.309, 49.44, 152.2)'}, | |
35 ]); | |
36 }); | |
37 at(2 * 1000, function() { | |
38 assert_styles(".anim", [ | |
39 {'transform':'matrix(1, 0, 0, 1, 200, 0)'}, | |
40 {'transform':'matrix(0, 1, -1, 0, 0, 0)'}, | |
41 {'transform':'matrix(0, 1, -1, 0, 200, 0)'}, | |
42 {'transform':'matrix(0, 1, -1, 0, 0, 200)'}, | |
43 ]); | |
44 }); | |
45 }, "Auto generated tests"); | |
OLD | NEW |