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

Side by Side Diff: polymer_0.5.4/bower_components/web-animations-js/test/js/timing.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('timing', function() { 1 suite('timing', function() {
2 setup(function() { 2 setup(function() {
3 webAnimationsMinifill.timeline._players = []; 3 webAnimations1.timeline._players = [];
4 }); 4 });
5 5
6 test('pause and scrub', function() { 6 test('pause and scrub', function() {
7 var player = document.body.animate([], { duration: 1000 }); 7 var player = document.body.animate([], { duration: 1000 });
8 player.pause(); 8 player.pause();
9 9
10 player.currentTime = 500; 10 player.currentTime = 500;
11 assert.equal(player.currentTime, 500); 11 assert.equal(player.currentTime, 500);
12 }); 12 });
13 13
(...skipping 28 matching lines...) Expand all
42 easing: 'ease-in' // fails only with cubic easing, not linear 42 easing: 'ease-in' // fails only with cubic easing, not linear
43 }); 43 });
44 tick(100); 44 tick(100);
45 player.currentTime = NaN; 45 player.currentTime = NaN;
46 tick(200); 46 tick(200);
47 47
48 player = document.body.animate([], { duration: NaN, easing: 'ease-out' }); 48 player = document.body.animate([], { duration: NaN, easing: 'ease-out' });
49 tick(300); 49 tick(300);
50 }); 50 });
51 }); 51 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698