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

Side by Side Diff: bower_components/web-animations-js/test/testcases/auto-test-pause-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':'100px'},
6 {'left':'100px'},
7 {'left':'0px'},
8 {'left':'0px'}]);
9 }, "Autogenerated");
10
11 //pause
12 at(1 * 1000, function() {
13 assert_styles(
14 '.anim',
15 [{'left':'138.46153259277344px'},
16 {'left':'140px'},
17 {'left':'0px'},
18 {'left':'0px'}]);
19 }, "Autogenerated");
20 at(2 * 1000, function() {
21 assert_styles(
22 '.anim',
23 [{'left':'138.46153259277344px'},
24 {'left':'140px'},
25 {'left':'0px'},
26 {'left':'0px'}]);
27 }, "Autogenerated");
28 //unpause
29 at(3 * 1000, function() {
30 assert_styles(
31 '.anim',
32 [{'left':'176.92308044433594px'},
33 {'left':'180px'},
34 {'left':'0px'},
35 {'left':'0px'}]);
36 }, "Autogenerated");
37 //pause
38 at(4 * 1000, function() {
39 assert_styles(
40 '.anim',
41 [{'left':'200px'},
42 {'left':'200px'},
43 {'left':'116px'},
44 {'left':'117.39130401611328px'}]);
45 }, "Autogenerated");
46 at(5 * 1000, function() {
47 assert_styles(
48 '.anim',
49 [{'left':'200px'},
50 {'left':'200px'},
51 {'left':'116px'},
52 {'left':'117.39130401611328px'}]);
53 }, "Autogenerated");
54 //unpause
55 at(6 * 1000, function() {
56 assert_styles(
57 '.anim',
58 [{'left':'200px'},
59 {'left':'200px'},
60 {'left':'156px'},
61 {'left':'160.86956787109375px'}]);
62 }, "Autogenerated");
63 at(7 * 1000, function() {
64 assert_styles(
65 '.anim',
66 [{'left':'200px'},
67 {'left':'200px'},
68 {'left':'196px'},
69 {'left':'200px'}]);
70 }, "Autogenerated");
71 at(7.1 * 1000, function() {
72 assert_styles(
73 '.anim',
74 [{'left':'200px'},
75 {'left':'200px'},
76 {'left':'200px'},
77 {'left':'200px'}]);
78 }, "Autogenerated");
79 }, "Autogenerated checks.");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698