mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
We need to rely on the audio channel service for all products now, so supporting running without it seems pointless at this point.
16 lines
412 B
JavaScript
16 lines
412 B
JavaScript
const PAGE = "data:text/html,page";
|
|
|
|
function* test_on_browser(browser) {
|
|
ok(!browser.audioMuted, "Audio should not be muted by default");
|
|
browser.mute();
|
|
ok(browser.audioMuted, "Audio should be muted now");
|
|
browser.unmute();
|
|
ok(!browser.audioMuted, "Audio should be unmuted now");
|
|
}
|
|
|
|
add_task(function*() {
|
|
yield BrowserTestUtils.withNewTab({
|
|
gBrowser,
|
|
url: PAGE,
|
|
}, test_on_browser);
|
|
});
|