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

Side by Side Diff: polymer_0.5.4/bower_components/web-animations-js/test/js/group-player-finish-event.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('group-player-finish-event', function() { 1 suite('group-player-finish-event', function() {
2 setup(function() { 2 setup(function() {
3 document.timeline.currentTime = undefined; 3 document.timeline.currentTime = undefined;
4 this.element = document.createElement('div'); 4 this.element = document.createElement('div');
5 document.documentElement.appendChild(this.element); 5 document.documentElement.appendChild(this.element);
6 var animation = new AnimationSequence([ 6 var animation = new AnimationSequence([
7 new Animation(this.element, [], 500), 7 new Animation(this.element, [], 500),
8 new AnimationGroup([ 8 new AnimationGroup([
9 new Animation(this.element, [], 250), 9 new Animation(this.element, [], 250),
10 new Animation(this.element, [], 500), 10 new Animation(this.element, [], 500),
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 this.player.removeEventListener('finish', toRemove); 78 this.player.removeEventListener('finish', toRemove);
79 this.player.onfinish = function() { 79 this.player.onfinish = function() {
80 assert.equal(count, 3); 80 assert.equal(count, 3);
81 done(); 81 done();
82 }; 82 };
83 tick(0); 83 tick(0);
84 this.player.cancel(); 84 this.player.cancel();
85 tick(1000); 85 tick(1000);
86 }); 86 });
87 }); 87 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698