Bug 1415346 - Remove unused AnimationEventHandler. r=birtles
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Wed, 08 Nov 2017 12:15:00 +0900
changeset 443939 dfb4033f96956395d8fa6fbc18386026adc0bca2
parent 443938 8809ffe82076749ae306c8e934bf03a04b05a233
child 443940 8e875e2383ee22c33e52897447ca8d08fec1db64
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbirtles
bugs1415346
milestone58.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 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);