Bug 1415346 - Remove unused AnimationEventHandler. r?birtles draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Wed, 08 Nov 2017 12:15:00 +0900
changeset 694698 3cb0d0c7823d6a63b9e949b8604b1def12714937
parent 694697 cf9a72a56123fcc3aec00defb4e3a5e2dc2f007c
child 694699 05aeb96b8fc197b379296be378007af3b266d53b
push id88205
push userhikezoe@mozilla.com
push dateWed, 08 Nov 2017 03:47:13 +0000
reviewersbirtles
bugs1415346
milestone58.0a1
Bug 1415346 - Remove unused AnimationEventHandler. r?birtles MozReview-Commit-ID: CKkaow9NNa8
dom/animation/test/css-animations/file_event-dispatch.html
--- a/dom/animation/test/css-animations/file_event-dispatch.html
+++ b/dom/animation/test/css-animations/file_event-dispatch.html
@@ -184,44 +184,40 @@ promise_test(t => {
     assert_equals(handler.animationstart, 100.0);
     assert_equals(handler.animationend, 0.0);
   });
 }, 'After -> Before');
 
 promise_test(t => {
   const [animation, watcher, div] =
     setupAnimation(t, 'anim 100s 100s paused');
-  const handler = new AnimationEventHandler(div);
 
   // Seek to After phase.
   animation.finish();
   return watcher.wait_for([ 'animationstart',
                             'animationend' ]).then(() => {
     // Seek to Active phase.
     animation.currentTime = 100 * MS_PER_SEC;
-    handler.clear();
     return watcher.wait_for('animationstart');
   }).then(evt => {
     assert_equals(evt.elapsedTime, 100.0);
   });
 }, 'After -> Active');
 
 promise_test(t => {
   const [animation, watcher, div]
     = setupAnimation(t, 'anim 100s 100s 3 paused');
-  const handler = new AnimationEventHandler(div);
 
   return animation.ready.then(() => {
     // Seek to iteration 0 (no animationiteration event should be dispatched)
     animation.currentTime = 100 * MS_PER_SEC;
     return watcher.wait_for('animationstart');
   }).then(evt => {
     // Seek to iteration 2
     animation.currentTime = 300 * MS_PER_SEC;
-    handler.clear();
     return watcher.wait_for('animationiteration');
   }).then(evt => {
     assert_equals(evt.elapsedTime, 200);
     // Seek to After phase (no animationiteration event should be dispatched)
     animation.currentTime = 400 * MS_PER_SEC;
     return watcher.wait_for('animationend');
   }).then(evt => {
     assert_equals(evt.elapsedTime, 300);