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

Unified Diff: chrome/test/data/extensions/api_test/tab_capture/active_tab_chrome_pages.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
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/tab_capture/active_tab_permission_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/tab_capture/active_tab_chrome_pages.js
diff --git a/chrome/test/data/extensions/api_test/tab_capture/active_tab_chrome_pages.js b/chrome/test/data/extensions/api_test/tab_capture/active_tab_chrome_pages.js
index 4cbbccc24bf39f200b13958523cdbc90f637d913..660778aa32a92e831e683f12cc93c2b430caeff1 100644
--- a/chrome/test/data/extensions/api_test/tab_capture/active_tab_chrome_pages.js
+++ b/chrome/test/data/extensions/api_test/tab_capture/active_tab_chrome_pages.js
@@ -5,7 +5,8 @@
var afterTabOpened = function() {
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();
});
};
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/tab_capture/active_tab_permission_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698