| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <!-- | 2 <!-- |
| 3 This test creates a data channel between two local PeerConnection instances | 3 This test creates a data channel between two local PeerConnection instances |
| 4 and ensures that an empty string sent by one is received by the second. | 4 and ensures that an empty string sent by one is received by the second. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <html> | 7 <html> |
| 8 <head> | 8 <head> |
| 9 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | 9 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 10 <title>RTCPeerConnection Data Channel Empty String Test</title> | 10 <title>RTCPeerConnection Data Channel Empty String Test</title> |
| 11 </head> | 11 </head> |
| 12 <body> | 12 <body> |
| 13 <div id="log"></div> | 13 <div id="log"></div> |
| 14 <h2>Messages exchanged</h2> | 14 <h2>Messages exchanged</h2> |
| 15 <div id="msg"></div> | 15 <div id="msg"></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 send empty strings across a WebRTC data channel.'); | 21 var test = async_test('Can send empty strings across a WebRTC data channel.'); |
| 22 | 22 |
| 23 var gFirstConnection = null; | 23 var gFirstConnection = null; |
| 24 var gSecondConnection = null; | 24 var gSecondConnection = null; |
| 25 var sendChannel = null; | 25 var sendChannel = null; |
| 26 var receiveChannel = null; | 26 var receiveChannel = null; |
| 27 | 27 |
| 28 var onReceiveChannel = function (event) { | 28 var onReceiveChannel = function (event) { |
| 29 receiveChannel = event.channel; | 29 receiveChannel = event.channel; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 .then(exchangeDescription(gFirstConnection, gSecondConnection)) | 99 .then(exchangeDescription(gFirstConnection, gSecondConnection)) |
| 100 .catch(test.step_func(function(e) { | 100 .catch(test.step_func(function(e) { |
| 101 assert_unreached('Error ' + e.name + ': ' + e.message); | 101 assert_unreached('Error ' + e.name + ': ' + e.message); |
| 102 })); | 102 })); |
| 103 }); | 103 }); |
| 104 </script> | 104 </script> |
| 105 | 105 |
| 106 </body> | 106 </body> |
| 107 </html> | 107 </html> |
| 108 | 108 |
| OLD | NEW |