| Index: chrome/test/data/extensions/api_test/tab_capture/permissions/test.js
|
| diff --git a/chrome/test/data/extensions/api_test/tab_capture/permissions/test.js b/chrome/test/data/extensions/api_test/tab_capture/permissions/test.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..74429abf86ede17e132688a84ff8d3c29ce4671b
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/tab_capture/permissions/test.js
|
| @@ -0,0 +1,28 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +var tabCapture = chrome.tabCapture;
|
| +
|
| +chrome.test.runTests([
|
| +
|
| + function cannotDirectlyUseGetUserMedia() {
|
| + var failure = function() {
|
| + chrome.test.succeed();
|
| + };
|
| +
|
| + var success = function(stream) {
|
| + chrome.test.fail();
|
| + };
|
| +
|
| + navigator.webkitGetUserMedia({
|
| + video: {
|
| + mandatory: { chromeMediaSource: 'tab', chromeMediaSourceId: '1:2' },
|
| + },
|
| + audio: {
|
| + mandatory: { chromeMediaSource: 'tab', chromeMediaSourceId: '1:2' },
|
| + }
|
| + }, success, failure);
|
| + },
|
| +
|
| +]);
|
|
|