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.tabCapture; |
| 6 |
| 7 chrome.test.runTests([ |
| 8 |
| 9 function cannotDirectlyUseGetUserMedia() { |
| 10 var failure = function() { |
| 11 chrome.test.succeed(); |
| 12 }; |
| 13 |
| 14 var success = function(stream) { |
| 15 chrome.test.fail(); |
| 16 }; |
| 17 |
| 18 navigator.webkitGetUserMedia({ |
| 19 video: { |
| 20 mandatory: { chromeMediaSource: 'tab', chromeMediaSourceId: '1:2' }, |
| 21 }, |
| 22 audio: { |
| 23 mandatory: { chromeMediaSource: 'tab', chromeMediaSourceId: '1:2' }, |
| 24 } |
| 25 }, success, failure); |
| 26 }, |
| 27 |
| 28 ]); |
OLD | NEW |