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

Unified Diff: chrome/test/data/extensions/api_test/tab_capture/constraints.js

Issue 1344753002: 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
Index: chrome/test/data/extensions/api_test/tab_capture/constraints.js
diff --git a/chrome/test/data/extensions/api_test/tab_capture/constraints.js b/chrome/test/data/extensions/api_test/tab_capture/constraints.js
index 9f652d5729171540f13bd9536566cdfc4991d6d8..757949dbbe83f2c88631f5694be65cbe383d1178 100644
--- a/chrome/test/data/extensions/api_test/tab_capture/constraints.js
+++ b/chrome/test/data/extensions/api_test/tab_capture/constraints.js
@@ -15,7 +15,8 @@ chrome.test.runTests([
}
}, function(stream) {
chrome.test.assertTrue(!!stream);
- stream.stop();
+ stream.getVideoTracks()[0].stop();
+ stream.getAudioTracks()[0].stop();
chrome.test.succeed();
});
},

Powered by Google App Engine
This is Rietveld 408576698