| 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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 // Add an expectation that the received video track is removed from | 538 // Add an expectation that the received video track is removed from |
| 539 // gSecondConnection. | 539 // gSecondConnection. |
| 540 addExpectedEvent(); | 540 addExpectedEvent(); |
| 541 remoteStream2.onremovetrack = function() { | 541 remoteStream2.onremovetrack = function() { |
| 542 eventOccured(); | 542 eventOccured(); |
| 543 } | 543 } |
| 544 // When all the above events have occurred- the test pass. | 544 // When all the above events have occurred- the test pass. |
| 545 setAllEventsOccuredHandler(reportTestSuccess); | 545 setAllEventsOccuredHandler(reportTestSuccess); |
| 546 | 546 |
| 547 gFirstConnection.removeStream(localStream); | 547 gFirstConnection.removeStream(localStream); |
| 548 gSecondConnection.removeStream(localStream); |
| 549 |
| 548 localStream.addTrack(gLocalStream.getAudioTracks()[0]); | 550 localStream.addTrack(gLocalStream.getAudioTracks()[0]); |
| 549 localStream.removeTrack(localStream.getVideoTracks()[0]); | 551 localStream.removeTrack(localStream.getVideoTracks()[0]); |
| 552 |
| 550 gFirstConnection.addStream(localStream); | 553 gFirstConnection.addStream(localStream); |
| 554 gSecondConnection.addStream(localStream); |
| 555 |
| 551 negotiate(); | 556 negotiate(); |
| 552 }); | 557 }); |
| 553 } | 558 } |
| 554 | 559 |
| 555 // Loads this page inside itself using an iframe, and ensures we can make a | 560 // Loads this page inside itself using an iframe, and ensures we can make a |
| 556 // successful getUserMedia + peerconnection call inside the iframe. | 561 // successful getUserMedia + peerconnection call inside the iframe. |
| 557 function callInsideIframe(constraints) { | 562 function callInsideIframe(constraints) { |
| 558 runInsideIframe(function(iframe) { | 563 runInsideIframe(function(iframe) { |
| 559 // Run a regular webrtc call inside the iframe. | 564 // Run a regular webrtc call inside the iframe. |
| 560 iframe.contentWindow.call(constraints); | 565 iframe.contentWindow.call(constraints); |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 <td><canvas width="320" height="240" id="remote-view-2-canvas" | 1025 <td><canvas width="320" height="240" id="remote-view-2-canvas" |
| 1021 style="display:none"></canvas></td> | 1026 style="display:none"></canvas></td> |
| 1022 <td><canvas width="320" height="240" id="remote-view-3-canvas" | 1027 <td><canvas width="320" height="240" id="remote-view-3-canvas" |
| 1023 style="display:none"></canvas></td> | 1028 style="display:none"></canvas></td> |
| 1024 <td><canvas width="320" height="240" id="remote-view-4-canvas" | 1029 <td><canvas width="320" height="240" id="remote-view-4-canvas" |
| 1025 style="display:none"></canvas></td> | 1030 style="display:none"></canvas></td> |
| 1026 </tr> | 1031 </tr> |
| 1027 </table> | 1032 </table> |
| 1028 </body> | 1033 </body> |
| 1029 </html> | 1034 </html> |
| OLD | NEW |