OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |