| 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_audio.js"></script> | 4 <script type="text/javascript" src="webrtc_test_audio.js"></script> |
| 5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
| 6 $ = function(id) { | 6 $ = function(id) { |
| 7 return document.getElementById(id); | 7 return document.getElementById(id); |
| 8 }; | 8 }; |
| 9 | 9 |
| 10 window.onerror = function(errorMsg, url, lineNumber, column, errorObj) { | 10 window.onerror = function(errorMsg, url, lineNumber, column, errorObj) { |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 198 |
| 199 // Test that we can't setup a call with an unsupported video codec | 199 // Test that we can't setup a call with an unsupported video codec |
| 200 function negotiateUnsupportedVideoCodec() { | 200 function negotiateUnsupportedVideoCodec() { |
| 201 createConnections(null); | 201 createConnections(null); |
| 202 transformSdp = removeVideoCodec; | 202 transformSdp = removeVideoCodec; |
| 203 | 203 |
| 204 onLocalDescriptionError = function(error) { | 204 onLocalDescriptionError = function(error) { |
| 205 var expectedMsg = 'Failed to set local offer sdp:' + | 205 var expectedMsg = 'Failed to set local offer sdp:' + |
| 206 ' Session error code: ERROR_CONTENT. Session error description:' + | 206 ' Session error code: ERROR_CONTENT. Session error description:' + |
| 207 ' Failed to set local video description recv parameters..'; | 207 ' Failed to set local video description recv parameters..'; |
| 208 assertEquals(expectedMsg, error); | 208 assertEquals(expectedMsg, error.message); |
| 209 reportTestSuccess(); | 209 reportTestSuccess(); |
| 210 }; | 210 }; |
| 211 navigator.webkitGetUserMedia({audio: true, video: true}, | 211 navigator.webkitGetUserMedia({audio: true, video: true}, |
| 212 addStreamToBothConnectionsAndNegotiate, printGetUserMediaError); | 212 addStreamToBothConnectionsAndNegotiate, printGetUserMediaError); |
| 213 } | 213 } |
| 214 | 214 |
| 215 // Test that we can't setup a call if one peer does not support encryption | 215 // Test that we can't setup a call if one peer does not support encryption |
| 216 function negotiateNonCryptoCall() { | 216 function negotiateNonCryptoCall() { |
| 217 createConnections(null); | 217 createConnections(null); |
| 218 transformSdp = removeCrypto; | 218 transformSdp = removeCrypto; |
| 219 onLocalDescriptionError = function(error) { | 219 onLocalDescriptionError = function(error) { |
| 220 var expectedMsg = 'Failed to set local offer sdp:' + | 220 var expectedMsg = 'Failed to set local offer sdp:' + |
| 221 ' Called with SDP without DTLS fingerprint.'; | 221 ' Called with SDP without DTLS fingerprint.'; |
| 222 | 222 |
| 223 assertEquals(expectedMsg, error); | 223 assertEquals(expectedMsg, error.message); |
| 224 reportTestSuccess(); | 224 reportTestSuccess(); |
| 225 }; | 225 }; |
| 226 navigator.webkitGetUserMedia({audio: true, video: true}, | 226 navigator.webkitGetUserMedia({audio: true, video: true}, |
| 227 addStreamToBothConnectionsAndNegotiate, printGetUserMediaError); | 227 addStreamToBothConnectionsAndNegotiate, printGetUserMediaError); |
| 228 } | 228 } |
| 229 | 229 |
| 230 // Test that we can negotiate a call with an SDP offer that includes a | 230 // Test that we can negotiate a call with an SDP offer that includes a |
| 231 // b=AS:XX line to control audio and video bandwidth | 231 // b=AS:XX line to control audio and video bandwidth |
| 232 function negotiateOfferWithBLine() { | 232 function negotiateOfferWithBLine() { |
| 233 createConnections(null); | 233 createConnections(null); |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1030 <td><canvas width="320" height="240" id="remote-view-2-canvas" | 1030 <td><canvas width="320" height="240" id="remote-view-2-canvas" |
| 1031 style="display:none"></canvas></td> | 1031 style="display:none"></canvas></td> |
| 1032 <td><canvas width="320" height="240" id="remote-view-3-canvas" | 1032 <td><canvas width="320" height="240" id="remote-view-3-canvas" |
| 1033 style="display:none"></canvas></td> | 1033 style="display:none"></canvas></td> |
| 1034 <td><canvas width="320" height="240" id="remote-view-4-canvas" | 1034 <td><canvas width="320" height="240" id="remote-view-4-canvas" |
| 1035 style="display:none"></canvas></td> | 1035 style="display:none"></canvas></td> |
| 1036 </tr> | 1036 </tr> |
| 1037 </table> | 1037 </table> |
| 1038 </body> | 1038 </body> |
| 1039 </html> | 1039 </html> |
| OLD | NEW |