OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 var afterTabOpened = function() { | 5 var afterTabOpened = function() { |
6 chrome.tabCapture.capture({audio: true, video: true}, function(stream) { | 6 chrome.tabCapture.capture({audio: true, video: true}, function(stream) { |
7 chrome.test.assertTrue(!!stream); | 7 chrome.test.assertTrue(!!stream); |
8 stream.stop(); | 8 stream.getVideoTracks()[0].stop(); |
| 9 stream.getAudioTracks()[0].stop(); |
9 chrome.test.succeed(); | 10 chrome.test.succeed(); |
10 }); | 11 }); |
11 }; | 12 }; |
12 | 13 |
13 chrome.test.notifyPass(); | 14 chrome.test.notifyPass(); |
14 chrome.test.sendMessage('ready1', afterTabOpened); | 15 chrome.test.sendMessage('ready1', afterTabOpened); |
OLD | NEW |