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

Unified Diff: chrome/test/data/extensions/api_test/tab_capture/active_tab_permission_test.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/active_tab_permission_test.js
diff --git a/chrome/test/data/extensions/api_test/tab_capture/active_tab_permission_test.js b/chrome/test/data/extensions/api_test/tab_capture/active_tab_permission_test.js
index 61d3a2f43975aabc1dc4e27361957dc1319bdc46..4a4ab4a3ccef8035f2c5e2d7c5094bf32e6c2b5f 100644
--- a/chrome/test/data/extensions/api_test/tab_capture/active_tab_permission_test.js
+++ b/chrome/test/data/extensions/api_test/tab_capture/active_tab_permission_test.js
@@ -5,7 +5,8 @@
var afterWhitelistExtension = function(msg) {
chrome.tabCapture.capture({audio: true, video: true}, function(stream) {
chrome.test.assertTrue(!!stream);
- stream.stop();
+ stream.getVideoTracks()[0].stop();
+ stream.getAudioTracks()[0].stop();
chrome.test.succeed();
});
};
@@ -20,7 +21,8 @@ var afterOpenNewTab = function(msg) {
var afterGrantPermission = function(msg) {
chrome.tabCapture.capture({audio: true, video: true}, function(stream) {
chrome.test.assertTrue(!!stream);
- stream.stop();
+ stream.getVideoTracks()[0].stop();
+ stream.getAudioTracks()[0].stop();
chrome.test.sendMessage('ready3', afterOpenNewTab);
});
};

Powered by Google App Engine
This is Rietveld 408576698