OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <!-- | 2 <!-- |
3 This test uses data only, and thus does not require fake media devices. | 3 This test uses data only, 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 Data-Only Connection Test with Promises</title> | 9 <title>RTCPeerConnection Data-Only Connection Test with Promises</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 only data using pro
mises.'); | 21 var test = async_test('Can set up a basic WebRTC call with only data using pro
mises.'); |
22 | 22 |
23 var gFirstConnection = null; | 23 var gFirstConnection = null; |
24 var gSecondConnection = null; | 24 var gSecondConnection = null; |
25 | 25 |
26 var onIceCandidateToFirst = test.step_func(function(event) { | 26 var onIceCandidateToFirst = test.step_func(function(event) { |
27 // If event.candidate is null = no more candidates. | 27 // If event.candidate is null = no more candidates. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 }) | 112 }) |
113 .catch(test.step_func(function(e) { | 113 .catch(test.step_func(function(e) { |
114 assert_unreached('Error ' + e.name + ': ' + e.message + | 114 assert_unreached('Error ' + e.name + ': ' + e.message + |
115 ' happened at step ' + atStep); | 115 ' happened at step ' + atStep); |
116 })); | 116 })); |
117 }); | 117 }); |
118 </script> | 118 </script> |
119 | 119 |
120 </body> | 120 </body> |
121 </html> | 121 </html> |
OLD | NEW |