OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 var tabCapture = chrome.experimental.tabCapture; |
| 6 var tabMediaRequestCallback = function(stream) { |
| 7 chrome.test.assertFalse(null == stream); |
| 8 chrome.test.succeed(); |
| 9 }; |
| 10 |
| 11 function runTests(tests) { |
| 12 chrome.test.getConfig(function(config) { |
| 13 operatingSystem = config.osName; |
| 14 chrome.test.runTests(tests); |
| 15 }); |
| 16 } |
| 17 |
| 18 chrome.test.runTests([ |
| 19 function getTabMedia() { |
| 20 tabCapture.getTabMedia(null, null, |
| 21 chrome.test.callbackPass(tabMediaRequestCallback)); |
| 22 } |
| 23 ]); |
OLD | NEW |