|
1 <!DOCTYPE HTML> |
|
2 <html class="reftest-wait"> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=791330 |
|
5 --> |
|
6 <head> |
|
7 <meta charset="utf-8"> |
|
8 <title>PeerConnection test - operate on closed connection</title> |
|
9 <script type="application/javascript"> |
|
10 function finish() { |
|
11 document.documentElement.removeAttribute("class"); |
|
12 } |
|
13 |
|
14 function runTest() { |
|
15 var pc = new mozRTCPeerConnection(); |
|
16 pc.close(); |
|
17 |
|
18 navigator.mozGetUserMedia({audio: true, fake: true}, function (stream) { |
|
19 try { |
|
20 pc.addStream(stream); |
|
21 pc.createOffer(function (offer) {}); |
|
22 } |
|
23 finally { |
|
24 stream.stop(); |
|
25 |
|
26 finish(); |
|
27 } |
|
28 }, function () {}); |
|
29 } |
|
30 </script> |
|
31 </head> |
|
32 |
|
33 <body onload="setTimeout(runTest, 100)"> |
|
34 </body> |
|
35 </html> |