test_peerConnection_addDataChannel.html (838B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <script type="application/javascript" src="pc.js"></script> 5 </head> 6 <body> 7 <pre id="test"> 8 <script type="application/javascript"> 9 createHTML({ 10 bug: "1017888", 11 title: "Renegotiation: add DataChannel" 12 }); 13 14 runNetworkTest(function (options) { 15 const test = new PeerConnectionTest(options); 16 addRenegotiation(test.chain, 17 commandsCreateDataChannel, 18 commandsCheckDataChannel); 19 20 // Insert before the second PC_LOCAL_WAIT_FOR_MEDIA_FLOW 21 test.chain.insertBefore('PC_LOCAL_WAIT_FOR_MEDIA_FLOW', 22 commandsWaitForDataChannel, 23 false, 24 1); 25 26 test.setMediaConstraints([{audio: true}], [{audio: true}]); 27 return test.run(); 28 }); 29 30 </script> 31 </pre> 32 </body> 33 </html>