366e8fe413a7ed116f7954f6b943e23c9f453b7a
[gecko.git] / test_peerConnection_addDataChannel.html
blob366e8fe413a7ed116f7954f6b943e23c9f453b7a
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 });
14 var test;
15 runNetworkTest(function (options) {
16 test = new PeerConnectionTest(options);
17 addRenegotiation(test.chain,
18 commandsCreateDataChannel,
19 commandsCheckDataChannel);
21 // Insert before the second PC_LOCAL_WAIT_FOR_MEDIA_FLOW
22 test.chain.insertBefore('PC_LOCAL_WAIT_FOR_MEDIA_FLOW',
23 commandsWaitForDataChannel,
24 false,
25 1);
27 test.setMediaConstraints([{audio: true}], [{audio: true}]);
28 test.run();
29 });
31 </script>
32 </pre>
33 </body>
34 </html>