summaryrefslogtreecommitdiffstats
path: root/dom/media/webrtc/tests/mochitests/test_peerConnection_throwInCallbacks.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/webrtc/tests/mochitests/test_peerConnection_throwInCallbacks.html')
-rw-r--r--dom/media/webrtc/tests/mochitests/test_peerConnection_throwInCallbacks.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/dom/media/webrtc/tests/mochitests/test_peerConnection_throwInCallbacks.html b/dom/media/webrtc/tests/mochitests/test_peerConnection_throwInCallbacks.html
index c476c60161..342b72a5e1 100644
--- a/dom/media/webrtc/tests/mochitests/test_peerConnection_throwInCallbacks.html
+++ b/dom/media/webrtc/tests/mochitests/test_peerConnection_throwInCallbacks.html
@@ -11,7 +11,12 @@
title: "Throw in PeerConnection callbacks"
});
-runNetworkTest(function () {
+runNetworkTest(async function () {
+ // Tests trigger warnings
+ await SpecialPowers.pushPrefEnv({
+ set: [['media.peerconnection.treat_warnings_as_errors', false]]
+ });
+
let finish;
const onfinished = new Promise(r => finish = async () => {
window.onerror = oldOnError;