mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
Automatic update from web-platform-testsMove peerIdentity test from webrtc-pc to webrtc-identity (#13892) Move peerIdentity test from webrtc-pc to webrtc-identity -- wpt-commits: 0ec83a2998156414399e365a4fbe9be7402b0285 wpt-pr: 13892
11 lines
467 B
HTML
11 lines
467 B
HTML
<!doctype html>
|
|
<meta charset=utf-8>
|
|
<title>RTCPeerConnection constructor</title>
|
|
<script src=/resources/testharness.js></script>
|
|
<script src=/resources/testharnessreport.js></script>
|
|
<script>
|
|
test(() => {
|
|
const toStringThrows = { toString: function() { throw new Error; } };
|
|
assert_throws(new Error, () => new RTCPeerConnection({ peerIdentity: toStringThrows }));
|
|
}, "RTCPeerConnection constructor throws if the given peerIdentity getter throws");
|
|
</script>
|