summaryrefslogtreecommitdiffstats
path: root/dom/media/webrtc/tests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
commitdef92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch)
tree2ef34b9ad8bb9a9220e05d60352558b15f513894 /dom/media/webrtc/tests
parentAdding debian version 125.0.3-1. (diff)
downloadfirefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz
firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/media/webrtc/tests')
-rw-r--r--dom/media/webrtc/tests/mochitests/test_peerConnection_toJSON.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/dom/media/webrtc/tests/mochitests/test_peerConnection_toJSON.html b/dom/media/webrtc/tests/mochitests/test_peerConnection_toJSON.html
index 96c2c42b78..1f3662d9fc 100644
--- a/dom/media/webrtc/tests/mochitests/test_peerConnection_toJSON.html
+++ b/dom/media/webrtc/tests/mochitests/test_peerConnection_toJSON.html
@@ -28,10 +28,11 @@
sdpMid: "test",
sdpMLineIndex: 3 });
jsonCopy = JSON.parse(JSON.stringify(rtcIceCandidate));
- for (key in rtcIceCandidate) {
- if (typeof(rtcIceCandidate[key]) == "function") continue;
- is(rtcIceCandidate[key], jsonCopy[key], "key " + key + " should match.");
- }
+ is(jsonCopy.candidate, "dummy");
+ is(jsonCopy.sdpMid, "test");
+ is(jsonCopy.sdpMLineIndex, 3);
+ is(jsonCopy.usernameFragment, rtcIceCandidate.usernameFragment);
+ is(Object.keys(jsonCopy).length, 4, "JSON limited to those four members.");
});
</script>
</pre>