From 8328d30690e7c86c93b2be8115a6fcab4da1d955 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Thu, 15 Oct 2009 21:32:37 +1300 Subject: [PATCH] Fix test_videocontrols again --- toolkit/content/tests/widgets/test_videocontrols.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolkit/content/tests/widgets/test_videocontrols.html b/toolkit/content/tests/widgets/test_videocontrols.html index 1d5c1fc1e8af..8c02e7bcafe3 100644 --- a/toolkit/content/tests/widgets/test_videocontrols.html +++ b/toolkit/content/tests/widgets/test_videocontrols.html @@ -57,6 +57,8 @@ function runTest(event) { is(event.type, "suspend", "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 suspends + event.target.removeEventListener("suspend", runTest, false); // Click the play button synthesizeMouse(video, playButtonCenterX, playButtonCenterY, { });