Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: content/test/data/media/peerconnection-call.html

Issue 1467383002: Fixing CallAndModifyStream test, preparing for new addStream behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698