| Index: polymer_0.5.4/bower_components/web-animations-js/test/js/group-player.js
|
| diff --git a/polymer_0.5.0/bower_components/web-animations-js/test/js/group-player.js b/polymer_0.5.4/bower_components/web-animations-js/test/js/group-player.js
|
| similarity index 95%
|
| copy from polymer_0.5.0/bower_components/web-animations-js/test/js/group-player.js
|
| copy to polymer_0.5.4/bower_components/web-animations-js/test/js/group-player.js
|
| index 1b343b30e60b77f9935eed29787a44138a24cf9b..aab85bb4324e09de43ce3a3eb847501faff05d22 100644
|
| --- a/polymer_0.5.0/bower_components/web-animations-js/test/js/group-player.js
|
| +++ b/polymer_0.5.4/bower_components/web-animations-js/test/js/group-player.js
|
| @@ -1,7 +1,7 @@
|
| suite('group-player', function() {
|
| setup(function() {
|
| document.timeline._players = [];
|
| - webAnimationsMinifill.timeline._players = [];
|
| + webAnimations1.timeline._players = [];
|
| this.elements = [];
|
|
|
| var animationMargin = function(target) {
|
| @@ -183,7 +183,7 @@ suite('group-player', function() {
|
| test('playing an animationGroup works as expected', function() {
|
| tick(90);
|
| var p = document.timeline.play(simpleAnimationGroup());
|
| - checkTimes(p, [null, 0], []);
|
| + checkTimes(p, [null, 0], [[null, 0], [null, 0], [null, 0]]);
|
| tick(100);
|
| checkTimes(p, [100, 0], [[100, 0], [100, 0], [100, 0]]);
|
| tick(300);
|
| @@ -547,6 +547,35 @@ suite('group-player', function() {
|
| checkTimes(player, [101, 599], [[101, 500], [601, 99]], 't = 700');
|
| });
|
|
|
| + test('pausing before tick works as expected with a simple AnimationSequence', function() {
|
| + var player = document.timeline.play(this.seqSimple_source);
|
| + checkTimes(player, [null, 0], [[null, 0], [null, -500]], 't = 0');
|
| +
|
| + player.pause();
|
| + checkTimes(player, [null, null], [[null, null], [null, null]], 't = 0');
|
| +
|
| + tick(10);
|
| + checkTimes(player, [null, 0], [[null, 0], [null, -500]], 't = 10');
|
| + });
|
| +
|
| + test('pausing and seeking before tick works as expected with a simple AnimationSequence', function() {
|
| + var player = document.timeline.play(this.seqSimple_source);
|
| + player.pause();
|
| +
|
| + player.currentTime = 0;
|
| + checkTimes(player, [null, 0], [[null, 0], [null, -500]], 't = 10');
|
| +
|
| + player.currentTime = 250;
|
| + checkTimes(player, [null, 250], [[null, 250], [null, -250]], 't = 10');
|
| +
|
| + player.currentTime = 500;
|
| + checkTimes(player, [null, 500], [[null, 500], [null, 0]], 't = 10');
|
| +
|
| + // FIXME: Expectation should be [null, 1000], [[null, 500], [null, 500]].
|
| + player.currentTime = 1000;
|
| + checkTimes(player, [null, 1000], [[null, 1000], [null, 500]], 't = 10');
|
| + });
|
| +
|
| test('pausing works as expected with an AnimationSequence inside an AnimationSequence', function() {
|
| var player = document.timeline.play(this.seqWithSeq_source);
|
| tick(0);
|
|
|