OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="webrtc_test_utilities.js"></script> | 3 <script type="text/javascript" src="webrtc_test_utilities.js"></script> |
4 <script type="text/javascript" src="webrtc_test_common.js"></script> | 4 <script type="text/javascript" src="webrtc_test_common.js"></script> |
5 <script type="text/javascript" src="webrtc_test_audio.js"></script> | 5 <script type="text/javascript" src="webrtc_test_audio.js"></script> |
6 <script type="text/javascript"> | 6 <script type="text/javascript"> |
7 $ = function(id) { | 7 $ = function(id) { |
8 return document.getElementById(id); | 8 return document.getElementById(id); |
9 }; | 9 }; |
10 | 10 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 addStreamToBothConnectionsAndNegotiate, printGetUserMediaError); | 182 addStreamToBothConnectionsAndNegotiate, printGetUserMediaError); |
183 waitForVideo('remote-view-1'); | 183 waitForVideo('remote-view-1'); |
184 waitForVideo('remote-view-2'); | 184 waitForVideo('remote-view-2'); |
185 } | 185 } |
186 | 186 |
187 // Test that we can't setup a call with an unsupported video codec | 187 // Test that we can't setup a call with an unsupported video codec |
188 function negotiateUnsupportedVideoCodec() { | 188 function negotiateUnsupportedVideoCodec() { |
189 createConnections(null); | 189 createConnections(null); |
190 setOfferSdpTransform(removeVideoCodec); | 190 setOfferSdpTransform(removeVideoCodec); |
191 | 191 |
192 onLocalDescriptionError = function(error) { | 192 setOnLocalDescriptionError(function(error) { |
193 var expectedMsg = 'Failed to set local offer sdp:' + | 193 var expectedMsg = 'Failed to set local offer sdp:' + |
194 ' Session error code: ERROR_CONTENT. Session error description:' + | 194 ' Session error code: ERROR_CONTENT. Session error description:' + |
195 ' Failed to set local video description recv parameters..'; | 195 ' Failed to set local video description recv parameters..'; |
196 assertEquals(expectedMsg, error.message); | 196 assertEquals(expectedMsg, error.message); |
197 reportTestSuccess(); | 197 reportTestSuccess(); |
198 }; | 198 }); |
199 navigator.webkitGetUserMedia({audio: true, video: true}, | 199 navigator.webkitGetUserMedia({audio: true, video: true}, |
200 addStreamToBothConnectionsAndNegotiate, printGetUserMediaError); | 200 addStreamToBothConnectionsAndNegotiate, printGetUserMediaError); |
201 } | 201 } |
202 | 202 |
203 // Test that we can't setup a call if one peer does not support encryption | 203 // Test that we can't setup a call if one peer does not support encryption |
204 function negotiateNonCryptoCall() { | 204 function negotiateNonCryptoCall() { |
205 createConnections(null); | 205 createConnections(null); |
206 setOfferSdpTransform(removeCrypto); | 206 setOfferSdpTransform(removeCrypto); |
207 setOnLocalDescriptionError(function(error) { | 207 setOnLocalDescriptionError(function(error) { |
208 var expectedMsg = 'Failed to set local offer sdp:' + | 208 var expectedMsg = 'Failed to set local offer sdp:' + |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 <td><canvas width="320" height="240" id="remote-view-2-canvas" | 744 <td><canvas width="320" height="240" id="remote-view-2-canvas" |
745 style="display:none"></canvas></td> | 745 style="display:none"></canvas></td> |
746 <td><canvas width="320" height="240" id="remote-view-3-canvas" | 746 <td><canvas width="320" height="240" id="remote-view-3-canvas" |
747 style="display:none"></canvas></td> | 747 style="display:none"></canvas></td> |
748 <td><canvas width="320" height="240" id="remote-view-4-canvas" | 748 <td><canvas width="320" height="240" id="remote-view-4-canvas" |
749 style="display:none"></canvas></td> | 749 style="display:none"></canvas></td> |
750 </tr> | 750 </tr> |
751 </table> | 751 </table> |
752 </body> | 752 </body> |
753 </html> | 753 </html> |
OLD | NEW |