mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 592882. Don't re-add the listener because we don't need it anymore. r=dolske a=orange
This commit is contained in:
parent
1c0a355ea1
commit
4110d0d0a8
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user