| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/testharness.js"></script> | 4 <script src="../../resources/testharness.js"></script> |
| 5 <script src="../../resources/testharnessreport.js"></script> | 5 <script src="../../resources/testharnessreport.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <script> | 8 <script> |
| 9 | 9 |
| 10 async_test(function(t) { | 10 async_test(function(t) { |
| 11 const localPeerConnection = new webkitRTCPeerConnection(null, null); | 11 const localPeerConnection = new RTCPeerConnection(); |
| 12 localPeerConnection.close(); | 12 localPeerConnection.close(); |
| 13 | 13 |
| 14 let counter = 0; | 14 let counter = 0; |
| 15 window.events = []; | 15 window.events = []; |
| 16 | 16 |
| 17 Promise.resolve().then(_ => events[counter++] = 1); | 17 Promise.resolve().then(_ => events[counter++] = 1); |
| 18 | 18 |
| 19 const iceCandidate = new RTCIceCandidate({candidate: 'nano nano'}); | 19 const iceCandidate = new RTCIceCandidate({candidate: 'nano nano'}); |
| 20 | 20 |
| 21 const unexpectedCallback = t.step_func(function() { | 21 const unexpectedCallback = t.step_func(function() { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 'success1', | 89 'success1', |
| 90 'success2', | 90 'success2', |
| 91 'success3', | 91 'success3', |
| 92 'success4', | 92 'success4', |
| 93 'iceConnectionState closed' | 93 'iceConnectionState closed' |
| 94 ]); | 94 ]); |
| 95 } | 95 } |
| 96 }); | 96 }); |
| 97 | 97 |
| 98 const calledCallbacks = []; | 98 const calledCallbacks = []; |
| 99 const pc = new webkitRTCPeerConnection(null, null); | 99 const pc = new RTCPeerConnection(); |
| 100 pc.oniceconnectionstatechange = t.step_func(onIceChange1); | 100 pc.oniceconnectionstatechange = t.step_func(onIceChange1); |
| 101 }, 'Tests the RTCPeerConnection Ice functionality.'); | 101 }, 'Tests the RTCPeerConnection Ice functionality.'); |
| 102 </script> | 102 </script> |
| 103 </body> | 103 </body> |
| 104 </html> | 104 </html> |
| OLD | NEW |