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

Side by Side Diff: polymer_0.5.4/bower_components/web-animations-js/test/js/timeline.js

Issue 895523005: Added Polymer 0.5.4 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 10 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
1 suite('timeline-tests', function() { 1 suite('timeline-tests', function() {
2 setup(function() { 2 setup(function() {
3 document.timeline._players = []; 3 document.timeline._players = [];
4 webAnimationsMinifill.timeline._players = []; 4 webAnimations1.timeline._players = [];
5 }); 5 });
6 6
7 test('no current players', function() { 7 test('no current players', function() {
8 assert.equal(document.timeline.getAnimationPlayers().length, 0); 8 assert.equal(document.timeline.getAnimationPlayers().length, 0);
9 }); 9 });
10 10
11 test('getAnimationPlayers', function() { 11 test('getAnimationPlayers', function() {
12 tick(90); 12 tick(90);
13 assert.equal(document.timeline.getAnimationPlayers().length, 0); 13 assert.equal(document.timeline.getAnimationPlayers().length, 0);
14 var player = document.body.animate([], {duration: 500, iterations: 1}); 14 var player = document.body.animate([], {duration: 500, iterations: 1});
(...skipping 12 matching lines...) Expand all
27 test('getAnimationPlayers checks cancelled animation', function() { 27 test('getAnimationPlayers checks cancelled animation', function() {
28 tick(90); 28 tick(90);
29 assert.equal(document.timeline.getAnimationPlayers().length, 0); 29 assert.equal(document.timeline.getAnimationPlayers().length, 0);
30 var player = document.body.animate([], {duration: 500, iterations: 1}); 30 var player = document.body.animate([], {duration: 500, iterations: 1});
31 tick(300); 31 tick(300);
32 assert.equal(document.timeline.getAnimationPlayers().length, 1); 32 assert.equal(document.timeline.getAnimationPlayers().length, 1);
33 player.cancel(); 33 player.cancel();
34 assert.equal(document.timeline.getAnimationPlayers().length, 0); 34 assert.equal(document.timeline.getAnimationPlayers().length, 0);
35 }); 35 });
36 }); 36 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698