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

Side by Side Diff: bower_components/web-animations-js/test/testcases/auto-test-matrix-transforms-checks.js

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 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 timing_test(function() {
2 at(0 * 1000, function() {
3 assert_styles(".anim", [
4 {'transform':'none'},
5 {'transform':'matrix(0.5, 0, 0, 0.5, 0, 0)'},
6 {'transform':'matrix(0.7071, 0.7071, -0.7071, 0.7071, 0, 0)'},
7 {'transform':'matrix(0.7071, 0.7071, -0.7071, 0.7071, 70.7107, 70.7107)'},
8 {'transform':'matrix(1.4142, 1.4142, -1.4142, 1.4142, 141.4214, 141.4214)' },
9 ]);
10 });
11 at(0.4 * 1000, function() {
12 assert_styles(".anim", [
13 {'transform':'matrix(1, 0, 0, 1, 20, 0)'},
14 {'transform':'matrix(0.6, 0, 0, 0.6, 20, 0)'},
15 {'transform':'matrix(0.809, 0.5878, -0.5878, 0.809, 20, 0)'},
16 {'transform':'matrix(0.7071, 0.7071, -0.7071, 0.7071, 76.5685, 56.5685)'},
17 {'transform':'matrix(1.3023, 1.0927, -1.0927, 1.3023, 133.1371, 113.1371)' },
18 ]);
19 });
20 at(0.8 * 1000, function() {
21 assert_styles(".anim", [
22 {'transform':'matrix(1, 0, 0, 1, 40, 0)'},
23 {'transform':'matrix(0.7, 0, 0, 0.7, 40, 0)'},
24 {'transform':'matrix(0.891, 0.454, -0.454, 0.891, 40, 0)'},
25 {'transform':'matrix(0.7071, 0.7071, -0.7071, 0.7071, 82.4264, 42.4264)'},
26 {'transform':'matrix(1.1468, 0.803, -0.803, 1.1468, 124.8528, 84.8528)'},
27 ]);
28 });
29 at(1.2000000000000002 * 1000, function() {
30 assert_styles(".anim", [
31 {'transform':'matrix(1, 0, 0, 1, 60, 0)'},
32 {'transform':'matrix(0.8, 0, 0, 0.8, 60, 0)'},
33 {'transform':'matrix(0.9511, 0.309, -0.309, 0.9511, 60, 0)'},
34 {'transform':'matrix(0.7071, 0.7071, -0.7071, 0.7071, 88.2843, 28.2843)'},
35 {'transform':'matrix(0.9526, 0.55, -0.55, 0.9526, 116.5685, 56.5685)'},
36 ]);
37 });
38 at(1.6 * 1000, function() {
39 assert_styles(".anim", [
40 {'transform':'matrix(1, 0, 0, 1, 80, 0)'},
41 {'transform':'matrix(0.9, 0, 0, 0.9, 80, 0)'},
42 {'transform':'matrix(0.9877, 0.1564, -0.1564, 0.9877, 80, 0)'},
43 {'transform':'matrix(0.7071, 0.7071, -0.7071, 0.7071, 94.1421, 14.1421)'},
44 {'transform':'matrix(0.725, 0.3381, -0.3381, 0.725, 108.2843, 28.2843)'},
45 ]);
46 });
47 at(2 * 1000, function() {
48 assert_styles(".anim", [
49 {'transform':'matrix(1, 0, 0, 1, 100, 0)'},
50 {'transform':'matrix(1, 0, 0, 1, 100, 0)'},
51 {'transform':'matrix(1, 0, 0, 1, 100, 0)'},
52 {'transform':'matrix(0.7071067811865476, 0.7071067811865475, -0.7071067811 865475, 0.7071067811865476, 100, 0)'},
53 {'transform':'matrix(0.4698463103929542, 0.17101007166283436, -0.171010071 66283436, 0.4698463103929542, 100, 0)'},
54 ]);
55 });
56 }, "Auto generated tests");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698