From 307c6e1733268eccf8e27e955b6ae06db819549a Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Mon, 19 Oct 2020 08:45:04 +0000 Subject: [PATCH] Bug 1346880 - Test that a muted tab that plays audio via the Web Audio API is really muted using PulseAudio monitoring devices. r=pehrsons,alwu Differential Revision: https://phabricator.services.mozilla.com/D93653 --- dom/media/webaudio/test/mochitest.ini | 3 + .../webaudio/test/test_webAudio_muteTab.html | 92 +++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 dom/media/webaudio/test/test_webAudio_muteTab.html diff --git a/dom/media/webaudio/test/mochitest.ini b/dom/media/webaudio/test/mochitest.ini index ccddac53fb76..3ae4b15fb4e4 100644 --- a/dom/media/webaudio/test/mochitest.ini +++ b/dom/media/webaudio/test/mochitest.ini @@ -253,4 +253,7 @@ skip-if = (os == "win" && processor == "aarch64") # aarch64 due to 1538360 [test_waveShaperInvalidLengthCurve.html] [test_WebAudioMemoryReporting.html] [test_audioContextParams_sampleRate.html] +[test_webAudio_muteTab.html] +scheme = https +skip-if = os == 'mac' || os == 'win' || toolkit == 'android' # Bug 1404995, no loopback devices on some platforms [test_audioContextParams_recordNonDefaultSampleRate.html] diff --git a/dom/media/webaudio/test/test_webAudio_muteTab.html b/dom/media/webaudio/test/test_webAudio_muteTab.html new file mode 100644 index 000000000000..9935237d64c4 --- /dev/null +++ b/dom/media/webaudio/test/test_webAudio_muteTab.html @@ -0,0 +1,92 @@ + + + + + + +
+
+
+
+ +