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(); |
}); |
}; |