OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <!-- | 2 <!-- |
3 This test uses the legacy callback API with no media, and thus does not require
fake media devices. | 3 This test uses the legacy callback API with no media, and thus does not require
fake media devices. |
4 --> | 4 --> |
5 | 5 |
6 <html> | 6 <html> |
7 <head> | 7 <head> |
8 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | 8 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
9 <title>RTCPeerConnection No-Media Connection Test</title> | 9 <title>RTCPeerConnection No-Media Connection Test</title> |
10 </head> | 10 </head> |
11 <body> | 11 <body> |
12 <div id="log"></div> | 12 <div id="log"></div> |
13 <h2>iceConnectionState info</h2> | 13 <h2>iceConnectionState info</h2> |
14 <div id="stateinfo"> | 14 <div id="stateinfo"> |
15 </div> | 15 </div> |
16 | 16 |
17 <!-- These files are in place when executing on W3C. --> | 17 <!-- These files are in place when executing on W3C. --> |
18 <script src="/resources/testharness.js"></script> | 18 <script src="/resources/testharness.js"></script> |
19 <script src="/resources/testharnessreport.js"></script> | 19 <script src="/resources/testharnessreport.js"></script> |
20 <script type="text/javascript"> | 20 <script type="text/javascript"> |
21 var test = async_test('Can set up a basic WebRTC call with no data.'); | 21 var test = async_test('Can set up a basic WebRTC call with no data.'); |
22 | 22 |
23 var gFirstConnection = null; | 23 var gFirstConnection = null; |
24 var gSecondConnection = null; | 24 var gSecondConnection = null; |
25 | 25 |
26 var onOfferCreated = test.step_func(function(offer) { | 26 var onOfferCreated = test.step_func(function(offer) { |
27 gFirstConnection.setLocalDescription(offer, ignoreSuccess, | 27 gFirstConnection.setLocalDescription(offer, ignoreSuccess, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 // The offerToReceiveVideo is necessary and sufficient to make | 131 // The offerToReceiveVideo is necessary and sufficient to make |
132 // an actual connection. | 132 // an actual connection. |
133 gFirstConnection.createOffer(onOfferCreated, failed('createOffer'), | 133 gFirstConnection.createOffer(onOfferCreated, failed('createOffer'), |
134 {offerToReceiveVideo: true}); | 134 {offerToReceiveVideo: true}); |
135 }); | 135 }); |
136 </script> | 136 </script> |
137 | 137 |
138 </body> | 138 </body> |
139 </html> | 139 </html> |
OLD | NEW |