Commit 30674209 authored by tommyw@chromium.org's avatar tommyw@chromium.org

Updating WebRTC tests to match the latest WebKit

http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastream

BUG=


Review URL: https://chromiumcodereview.appspot.com/11970010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177215 0039d316-1c4b-4281-b951-d872f2087c98
parent f89b3750
......@@ -54,25 +54,25 @@ function hangUpFromHere() {
function toggleRemoteVideoFromHere() {
toggleRemoteStream(function(remoteStream) {
return remoteStream.videoTracks[0];
return remoteStream.getVideoTracks()[0];
}, 'video');
}
function toggleRemoteAudioFromHere() {
toggleRemoteStream(function(remoteStream) {
return remoteStream.audioTracks[0];
return remoteStream.getAudioTracks()[0];
}, 'audio');
}
function toggleLocalVideoFromHere() {
toggleLocalStream(function(localStream) {
return localStream.videoTracks[0];
return localStream.getVideoTracks()[0];
}, 'video');
}
function toggleLocalAudioFromHere() {
toggleLocalStream(function(localStream) {
return localStream.audioTracks[0];
return localStream.getAudioTracks()[0];
}, 'audio');
}
......
......@@ -178,7 +178,8 @@ class WebrtcCallTest(webrtc_test_base.WebrtcTestBase):
self._LoadPageInTwoTabs('webrtc_jsep01_test.html')
self._SetupCall(request_video=True, request_audio=True)
select_video_function = 'function(local) { return local.videoTracks[0]; }'
select_video_function = \
'function(local) { return local.getVideoTracks()[0]; }'
self.assertEquals('ok-video-toggled-to-false', self.ExecuteJavascript(
'toggleLocalStream(' + select_video_function + ', "video")',
tab_index=0))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment