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