зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1262053 - part10 : modify tests. r=baku
MozReview-Commit-ID: 98JWlLo7oRG --HG-- extra : rebase_source : 207b0c68a3218ad260f8b7c97748df7587cb0616
This commit is contained in:
Родитель
b29b15681d
Коммит
a2979b25f8
|
@ -74,7 +74,7 @@ function setupTestFrame() {
|
|||
|
||||
ac.onactivestatechanged = () => {
|
||||
ac.onactivestatechanged = null;
|
||||
error("Should not receive onactivestatechanged!");
|
||||
ok(true, "Should receive onactivestatechanged!");
|
||||
};
|
||||
|
||||
continueTest();
|
||||
|
|
|
@ -84,4 +84,4 @@ add_task(function* block_autoplay_media() {
|
|||
yield BrowserTestUtils.removeTab(tab1);
|
||||
yield BrowserTestUtils.removeTab(tab2);
|
||||
yield BrowserTestUtils.removeTab(tab3);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -143,14 +143,7 @@ function play_nonautoplay_audio_should_be_blocked(suspendedType) {
|
|||
}
|
||||
|
||||
nonAutoPlay.play();
|
||||
return new Promise(resolve => {
|
||||
nonAutoPlay.onplay = function () {
|
||||
nonAutoPlay.onplay = null;
|
||||
is(nonAutoPlay.computedSuspended, suspendedType,
|
||||
"The suspeded state of non-autoplay audio is correct.");
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
ok(nonAutoPlay.paused, "The blocked audio can't be playback.");
|
||||
}
|
||||
|
||||
function* suspended_pause(url, browser) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче