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

Unified Diff: chrome/test/data/webrtc/webrtc-simulcast.html

Issue 1349273003: Update tests for chrome, as MediaStream label, ended attributes and stop() method will be removed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webrtc/webrtc-simulcast.html
diff --git a/chrome/test/data/webrtc/webrtc-simulcast.html b/chrome/test/data/webrtc/webrtc-simulcast.html
index de7c67a0b7b20561161d5f58d8eff00262ef3407..486681a8356e9400ad04268b523769846fdf0376 100644
--- a/chrome/test/data/webrtc/webrtc-simulcast.html
+++ b/chrome/test/data/webrtc/webrtc-simulcast.html
@@ -166,7 +166,7 @@ function didntGetStream(err) {
function openCamera(width, height) {
if (localStream) {
pcClient.removeStream(localStream);
- localStream.getVideoTracks().stop();
+ localStream.getVideoTracks()[0].stop();
localStream = null;
}
navigator.webkitGetUserMedia({
@@ -203,14 +203,14 @@ function onServerAnswer(desc) {
}
function onServerGotStream(e) {
- trace('Received remote stream: ' + e.stream.label +
+ trace('Received remote stream: ' + e.stream.id +
'; looking up corresponding video tag.');
- var remoteVideo = $(e.stream.label);
+ var remoteVideo = $(e.stream.id);
if (!remoteVideo) {
// All streams we receive must have a corresponding video tag defined in the
// html, otherwise we can't detect video in it.
- throw 'Received video with unexpected id ' + e.stream.label;
+ throw 'Received video with unexpected id ' + e.stream.id;
}
remoteVideo.src = webkitURL.createObjectURL(e.stream);
}
« 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