test_peerConnection_addDataChannelNoBundle.html (1300B)
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 options = options || { }; 16 options.bundle = false; 17 const test = new PeerConnectionTest(options); 18 addRenegotiation(test.chain, 19 commandsCreateDataChannel.concat( 20 [ 21 function PC_LOCAL_EXPECT_ICE_CHECKING(test) { 22 test.pcLocal.expectIceChecking(); 23 }, 24 function PC_REMOTE_EXPECT_ICE_CHECKING(test) { 25 test.pcRemote.expectIceChecking(); 26 }, 27 ] 28 ), 29 commandsCheckDataChannel); 30 31 // Insert before the second PC_LOCAL_WAIT_FOR_MEDIA_FLOW 32 test.chain.insertBefore('PC_LOCAL_WAIT_FOR_MEDIA_FLOW', 33 commandsWaitForDataChannel, 34 false, 35 1); 36 37 test.setMediaConstraints([{audio: true}], [{audio: true}]); 38 return test.run(); 39 }); 40 41 </script> 42 </pre> 43 </body> 44 </html>