Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /webrtc/RTCPeerConnectionIceErrorEvent.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset="utf-8">
<html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(() => {
init = {
address: "168.3.4.5",
port: 4711,
url: "turn:turn.example.org",
errorCode: 703,
errorText: "Test error"
};
event = new RTCPeerConnectionIceErrorEvent('type', init);
assert_equals(event.type, 'type');
assert_equals(event.address, '168.3.4.5');
assert_equals(event.port, 4711);
assert_equals(event.url, "turn:turn.example.org");
assert_equals(event.errorCode, 703);
assert_equals(event.errorText, "Test error");
}, 'RTCPeerConnectionIceErrorEvent constructed from init parameters');
</script>
</html>