Bug 1259883 - Enable a test for player finishing behavior in file_animation-starttime.html r=hiro
authoremi suzuki <suzuming@gmail.com>
Sat, 26 Mar 2016 17:00:51 +0900
changeset 290510 feb85260ffb750c7e0a3096e1ffd7134249d4e67
parent 290509 cdf83aa2b0ba8f1b0b0f2b7402660307abd04b43
child 290511 310e9b700300d8b62e3b16e91e978e26cead239c
push id30123
push userkwierso@gmail.com
push dateMon, 28 Mar 2016 20:04:22 +0000
treeherdermozilla-central@a66bf0a800f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershiro
bugs1259883
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1259883 - Enable a test for player finishing behavior in file_animation-starttime.html r=hiro MozReview-Commit-ID: 1GPW9UsEK5E
dom/animation/test/css-animations/file_animation-starttime.html
--- a/dom/animation/test/css-animations/file_animation-starttime.html
+++ b/dom/animation/test/css-animations/file_animation-starttime.html
@@ -212,34 +212,38 @@ async_test(function(t)
     div.style.animationPlayState = 'running';
     getComputedStyle(div).animationPlayState;
     assert_not_equals(animation.startTime, null,
                       'startTime is preserved when a pause is aborted');
     t.done();
   }));
 }, 'startTime while pause-pending and play-pending');
 
-async_test(function(t)
-{
+async_test(function(t) {
   var div = addDiv(t, { 'style': 'animation: anim 100s' });
   var animation = div.getAnimations()[0];
   // Seek to end to put us in the finished state
-  // FIXME: Once we implement finish(), use that here.
   animation.currentTime = 100 * 1000;
   animation.ready.then(t.step_func(function() {
     // Call play() which puts us back in the running state
     animation.play();
-    // FIXME: Enable this once we implement finishing behavior (bug 1074630)
-    /*
     assert_equals(animation.startTime, null, 'startTime is unresolved');
-    */
     t.done();
   }));
 }, 'startTime while play-pending from finished state');
 
+test(function(t) {
+  var div = addDiv(t, { 'style': 'animation: anim 100s' });
+  var animation = div.getAnimations()[0];
+  animation.finish();
+  // Call play() which puts us back in the running state
+  animation.play();
+  assert_equals(animation.startTime, null, 'startTime is unresolved');
+}, 'startTime while play-pending from finished state using finish()');
+
 async_test(function(t) {
   var div = addDiv(t, { style: 'animation: anim 1000s' });
   var animation = div.getAnimations()[0];
 
   assert_equals(animation.startTime, null, 'The initial startTime is null');
   var initialTimelineTime = document.timeline.currentTime;
 
   animation.ready.then(t.step_func(function() {