зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1655204 - part2 : add a testcase to ensure 'stop' would stop controlling media. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D84876
This commit is contained in:
Родитель
1ba14f3e89
Коммит
41531f2b0c
|
@ -31,6 +31,11 @@ add_task(async function testPlayPauseAndStop() {
|
|||
await generateMediaControlKey("stop");
|
||||
await checkOrWaitUntilMediaStoppedPlaying(tab, testVideoId);
|
||||
|
||||
info(`we have stop controlling media, pressing 'play' won't resume media`);
|
||||
// Not expect playback state change, so using ChromeUtils's method directly.
|
||||
ChromeUtils.generateMediaControlKey("play");
|
||||
await checkOrWaitUntilMediaStoppedPlaying(tab, testVideoId);
|
||||
|
||||
info(`remove tab`);
|
||||
await BrowserTestUtils.removeTab(tab);
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче