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

Side by Side Diff: chrome/test/data/webrtc/manual/peerconnection.js

Issue 11970010: Updating WebRTC tests to match the latest WebKit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing usage Created 7 years, 11 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/test/functional/webrtc_call.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 // The *Here functions are called from peerconnection.html and will make calls 7 // The *Here functions are called from peerconnection.html and will make calls
8 // into our underlying JavaScript library with the values from the page 8 // into our underlying JavaScript library with the values from the page
9 // (have to be named differently to avoid name clashes with existing functions). 9 // (have to be named differently to avoid name clashes with existing functions).
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 removeLocalStream(); 47 removeLocalStream();
48 } 48 }
49 49
50 function hangUpFromHere() { 50 function hangUpFromHere() {
51 hangUp(); 51 hangUp();
52 acceptIncomingCallsAgain(); 52 acceptIncomingCallsAgain();
53 } 53 }
54 54
55 function toggleRemoteVideoFromHere() { 55 function toggleRemoteVideoFromHere() {
56 toggleRemoteStream(function(remoteStream) { 56 toggleRemoteStream(function(remoteStream) {
57 return remoteStream.videoTracks[0]; 57 return remoteStream.getVideoTracks()[0];
58 }, 'video'); 58 }, 'video');
59 } 59 }
60 60
61 function toggleRemoteAudioFromHere() { 61 function toggleRemoteAudioFromHere() {
62 toggleRemoteStream(function(remoteStream) { 62 toggleRemoteStream(function(remoteStream) {
63 return remoteStream.audioTracks[0]; 63 return remoteStream.getAudioTracks()[0];
64 }, 'audio'); 64 }, 'audio');
65 } 65 }
66 66
67 function toggleLocalVideoFromHere() { 67 function toggleLocalVideoFromHere() {
68 toggleLocalStream(function(localStream) { 68 toggleLocalStream(function(localStream) {
69 return localStream.videoTracks[0]; 69 return localStream.getVideoTracks()[0];
70 }, 'video'); 70 }, 'video');
71 } 71 }
72 72
73 function toggleLocalAudioFromHere() { 73 function toggleLocalAudioFromHere() {
74 toggleLocalStream(function(localStream) { 74 toggleLocalStream(function(localStream) {
75 return localStream.audioTracks[0]; 75 return localStream.getAudioTracks()[0];
76 }, 'audio'); 76 }, 'audio');
77 } 77 }
78 78
79 function stopLocalFromHere() { 79 function stopLocalFromHere() {
80 stopLocalStream(); 80 stopLocalStream();
81 } 81 }
82 82
83 function createDataChannelFromHere() { 83 function createDataChannelFromHere() {
84 ensureHasPeerConnection_(); 84 ensureHasPeerConnection_();
85 createDataChannelOnPeerConnection(); 85 createDataChannelOnPeerConnection();
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 function(data_message) { 273 function(data_message) {
274 debug('Received ' + data_message.data); 274 debug('Received ' + data_message.data);
275 $('data-channel-receive').value = 275 $('data-channel-receive').value =
276 data_message.data + '\n' + $('data-channel-receive').value; 276 data_message.data + '\n' + $('data-channel-receive').value;
277 }); 277 });
278 } 278 }
279 279
280 $ = function(id) { 280 $ = function(id) {
281 return document.getElementById(id); 281 return document.getElementById(id);
282 }; 282 };
OLDNEW
« no previous file with comments | « no previous file | chrome/test/functional/webrtc_call.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698