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

Side by Side Diff: bower_components/web-animations-js/test/testcases/test-reversed-player-active-phase.html

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 <style>
2 #target {
3 position: absolute;
4 width: 10px;
5 height: 10px;
6 background: black;
7 }
8 </style>
9 <script src="../bootstrap.js"></script>
10 <div id="target"></div>
11 <script>
12 timing_test(function() {
13 var player = target.animate([{left: '0px'}, {left: '100px'}], {duration: 2, fill: 'forwards'});
14
15 at(1, function() {
16 assert_styles(target, {left: '50px'});
17 player.currentTime = 3;
18 player.playbackRate = -1;
19 assert_styles(target, {left: '100px'});
20 }, 'AnimationPlayer reversing');
21
22 at(2, function() {}, 'Tick');
23
24 at(3, function() {
25 assert_styles(target, {left: '50px'});
26 }, 'Reversed player entering its active phase should take effect');
27 });
28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698