| Index: polymer_0.5.4/bower_components/web-animations-js/test/js/player.js
|
| diff --git a/polymer_0.5.0/bower_components/web-animations-js/test/js/player.js b/polymer_0.5.4/bower_components/web-animations-js/test/js/player.js
|
| similarity index 94%
|
| copy from polymer_0.5.0/bower_components/web-animations-js/test/js/player.js
|
| copy to polymer_0.5.4/bower_components/web-animations-js/test/js/player.js
|
| index ed50e162b0e630ddb6f563445ee41a47640eb9b9..ef6f9f1cedcb429d442224d24aa622ea1ff0c744 100644
|
| --- a/polymer_0.5.0/bower_components/web-animations-js/test/js/player.js
|
| +++ b/polymer_0.5.4/bower_components/web-animations-js/test/js/player.js
|
| @@ -1,6 +1,6 @@
|
| suite('player', function() {
|
| setup(function() {
|
| - webAnimationsMinifill.timeline._players = [];
|
| + webAnimations1.timeline._players = [];
|
| });
|
| test('zero duration animation works', function() {
|
| tick(90);
|
| @@ -262,14 +262,14 @@ suite('player', function() {
|
| player.cancel();
|
| // getComputedStyle forces a tick.
|
| assert.equal(getComputedStyle(target).marginLeft, '0px');
|
| - assert.deepEqual(webAnimationsMinifill.timeline._players, []);
|
| + assert.deepEqual(webAnimations1.timeline._players, []);
|
| tick(120);
|
| assert.equal(getComputedStyle(target).marginLeft, '0px');
|
| - assert.deepEqual(webAnimationsMinifill.timeline._players, []);
|
| + assert.deepEqual(webAnimations1.timeline._players, []);
|
| document.documentElement.removeChild(target);
|
| });
|
| test('startTime is set on first tick if timeline hasn\'t started', function() {
|
| - webAnimationsMinifill.timeline.currentTime = undefined;
|
| + webAnimations1.timeline.currentTime = undefined;
|
| var p = document.body.animate([], 1000);
|
| tick(0);
|
| tick(100);
|
| @@ -279,27 +279,27 @@ suite('player', function() {
|
| tick(90);
|
| var nofill = document.body.animate([], 100);
|
| var fill = document.body.animate([], {duration: 100, fill: 'forwards'});
|
| - assert.deepEqual(webAnimationsMinifill.timeline._players, [nofill._player || nofill, fill._player || fill]);
|
| + assert.deepEqual(webAnimations1.timeline._players, [nofill._player || nofill, fill._player || fill]);
|
| tick(100);
|
| - assert.deepEqual(webAnimationsMinifill.timeline._players, [nofill._player || nofill, fill._player || fill]);
|
| + assert.deepEqual(webAnimations1.timeline._players, [nofill._player || nofill, fill._player || fill]);
|
| tick(400);
|
| - assert.deepEqual(webAnimationsMinifill.timeline._players, [fill._player || fill]);
|
| + assert.deepEqual(webAnimations1.timeline._players, [fill._player || fill]);
|
| });
|
| test('discarded players get re-added on modification', function() {
|
| tick(90);
|
| var player = document.body.animate([], 100);
|
| tick(100);
|
| tick(400);
|
| - assert.deepEqual(webAnimationsMinifill.timeline._players, []);
|
| + assert.deepEqual(webAnimations1.timeline._players, []);
|
| player.currentTime = 0;
|
| - assert.deepEqual(webAnimationsMinifill.timeline._players, [player._player || player]);
|
| + assert.deepEqual(webAnimations1.timeline._players, [player._player || player]);
|
| });
|
| test('players in the before phase are not discarded', function() {
|
| tick(100);
|
| var player = document.body.animate([], 100);
|
| player.currentTime = -50;
|
| tick(110);
|
| - assert.deepEqual(webAnimationsMinifill.timeline._players, [player._player || player]);
|
| + assert.deepEqual(webAnimations1.timeline._players, [player._player || player]);
|
| });
|
| test('players that go out of effect should not clear the effect of players that are in effect', function() {
|
| var target = document.createElement('div');
|
| @@ -333,7 +333,7 @@ suite('player', function() {
|
| document.body.removeChild(target);
|
| });
|
| test('Player that hasn\'t been played has playState \'idle\'', function() {
|
| - var source = new minifillAnimation(document.body, [], 1000);
|
| + var source = new webAnimations1Animation(document.body, [], 1000);
|
| var p = new Player(source);
|
| assert.equal(p.playState, 'idle');
|
| });
|
|
|