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

Side by Side Diff: polymer_0.5.4/bower_components/web-animations-js/test/js/animation-constructor.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('animation-constructor', function() { 1 suite('animation-constructor', function() {
2 setup(function() { 2 setup(function() {
3 document.timeline.getAnimationPlayers().forEach(function(player) { 3 document.timeline.getAnimationPlayers().forEach(function(player) {
4 player.cancel(); 4 player.cancel();
5 }); 5 });
6 }); 6 });
7 7
8 test('Playing an Animation makes a Player', function() { 8 test('Playing an Animation makes a Player', function() {
9 var animation = new Animation(document.body, [], 1000); 9 var animation = new Animation(document.body, [], 1000);
10 assert.equal(document.body.getAnimationPlayers().length, 0); 10 assert.equal(document.body.getAnimationPlayers().length, 0);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // noop 71 // noop
72 }, 200); 72 }, 200);
73 73
74 var player = document.timeline.play(animation); 74 var player = document.timeline.play(animation);
75 assert.isNotNull(player); 75 assert.isNotNull(player);
76 tick(50); 76 tick(50);
77 tick(150); 77 tick(150);
78 assert.equal(player.currentTime, 100); 78 assert.equal(player.currentTime, 100);
79 }); 79 });
80 }); 80 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698