This commit is contained in:
Robert O'Callahan 2009-10-15 21:32:37 +13:00
Родитель 98c09ede2e
Коммит 8328d30690
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -57,6 +57,8 @@ function runTest(event) {
is(event.type, "suspend", "checking event type"); is(event.type, "suspend", "checking event type");
is(video.paused, true, "checking video play state"); is(video.paused, true, "checking video play state");
is(video.muted, false, "checking video mute 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 // Click the play button
synthesizeMouse(video, playButtonCenterX, playButtonCenterY, { }); synthesizeMouse(video, playButtonCenterX, playButtonCenterY, { });