Bug 1415346 - Remove unused AnimationEventHandler. r?birtles
MozReview-Commit-ID: CKkaow9NNa8
--- 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);