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

Side by Side Diff: bower_components/web-animations-js/test/testcases/auto-test-keyframe-creation-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(
4 '.anim',
5 [{'left':'50px'},
6 {'left':'50px'},
7 {'left':'100px'},
8 {'left':'50px'},
9 {'left':'100px'},
10 {'left':'200px'},
11 {'left':'200px'}]);
12 }, "Autogenerated");
13 at(0.4 * 1000, function() {
14 assert_styles(
15 '.anim',
16 [{'left':'50px'},
17 {'left':'50px'},
18 {'left':'120px'},
19 {'left':'80px'},
20 {'left':'120px'},
21 {'left':'120px'},
22 {'left':'360px'}]);
23 }, "Autogenerated");
24 at(0.8 * 1000, function() {
25 assert_styles(
26 '.anim',
27 [{'left':'50px'},
28 {'left':'50px'},
29 {'left':'140px'},
30 {'left':'110px'},
31 {'left':'140px'},
32 {'left':'120px'},
33 {'left':'340px'}]);
34 }, "Autogenerated");
35 at(1.2000000000000002 * 1000, function() {
36 assert_styles(
37 '.anim',
38 [{'left':'120px'},
39 {'left':'80px'},
40 {'left':'160px'},
41 {'left':'140px'},
42 {'left':'160px'},
43 {'left':'146.6666717529297px'},
44 {'left':'340px'}]);
45 }, "Autogenerated");
46 at(1.6 * 1000, function() {
47 assert_styles(
48 '.anim',
49 [{'left':'160px'},
50 {'left':'140px'},
51 {'left':'180px'},
52 {'left':'170px'},
53 {'left':'180px'},
54 {'left':'173.3333282470703px'},
55 {'left':'360px'}]);
56 }, "Autogenerated");
57 at(2 * 1000, function() {
58 assert_styles(
59 '.anim',
60 {'left':'200px'});
61 }, "Autogenerated");
62 at(2.4 * 1000, function() {
63 assert_styles(
64 '.anim',
65 {'left':'200px'});
66 }, "Autogenerated");
67 }, "Autogenerated checks.");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698