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

Unified Diff: polymer_0.5.0/bower_components/web-animations-js/test/js/tick.js

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: polymer_0.5.0/bower_components/web-animations-js/test/js/tick.js
diff --git a/polymer_0.5.0/bower_components/web-animations-js/test/js/tick.js b/polymer_0.5.0/bower_components/web-animations-js/test/js/tick.js
new file mode 100644
index 0000000000000000000000000000000000000000..1e6f817c46cfcb443d7f81a286a891bd60077784
--- /dev/null
+++ b/polymer_0.5.0/bower_components/web-animations-js/test/js/tick.js
@@ -0,0 +1,16 @@
+suite('tick-tests', function() {
+ setup(function() { webAnimationsMinifill.timeline._players = []; });
+
+ test('players are in effect but ticking stops once forward fill is reached', function() {
+ tick(90);
+ var player = document.body.animate([], {duration: 1000, fill: 'forwards'});
+ tick(100);
+ tick(600);
+ assert.equal(webAnimationsMinifill.timeline._players.length, 1);
+ assert.equal(isTicking(), true);
+ tick(1100);
+ assert.equal(player.finished, true);
+ assert.equal(webAnimationsMinifill.timeline._players.length, 1);
+ assert.equal(isTicking(), false);
+ });
+});

Powered by Google App Engine
This is Rietveld 408576698