Bug 592882. Don't re-add the listener because we don't need it anymore. r=dolske a=orange

This commit is contained in:
Timothy Nikkel 2010-10-21 19:58:11 -05:00
parent 1c0a355ea1
commit 4110d0d0a8

View File

@ -57,8 +57,6 @@ function runTest(event) {
is(event.type, "canplaythrough", "checking event type");
is(video.paused, true, "checking video play state");
is(video.muted, false, "checking video mute state");
// Don't respond to any more canplaythroughs
event.target.removeEventListener("canplaythrough", runTest, false);
// Click the play button
synthesizeMouse(video, playButtonCenterX, playButtonCenterY, { });
@ -221,7 +219,6 @@ function canplaythroughevent(event) {
canplaythroughsavedevent = event;
gotcanplaythroughevent = true;
video.removeEventListener("canplaythrough", canplaythroughevent, false);
video.addEventListener("canplaythrough", runTest, false);
maybeStartTest();
}