RTCPeerConnectionIceErrorEvent.html (722B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <html> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script> 7 8 test(() => { 9 init = { 10 address: "168.3.4.5", 11 port: 4711, 12 url: "turn:turn.example.org", 13 errorCode: 703, 14 errorText: "Test error" 15 }; 16 event = new RTCPeerConnectionIceErrorEvent('type', init); 17 assert_equals(event.type, 'type'); 18 assert_equals(event.address, '168.3.4.5'); 19 assert_equals(event.port, 4711); 20 assert_equals(event.url, "turn:turn.example.org"); 21 assert_equals(event.errorCode, 703); 22 assert_equals(event.errorText, "Test error"); 23 }, 'RTCPeerConnectionIceErrorEvent constructed from init parameters'); 24 25 </script> 26 </html>