| Index: chrome/test/data/extensions/api_test/desktop_capture/test.js
|
| diff --git a/chrome/test/data/extensions/api_test/desktop_capture/test.js b/chrome/test/data/extensions/api_test/desktop_capture/test.js
|
| index bdf3131048a12721601097d02ba957c1cfdbf0f5..1061fece70a11c74e998dcefcb92c62946e7a282 100644
|
| --- a/chrome/test/data/extensions/api_test/desktop_capture/test.js
|
| +++ b/chrome/test/data/extensions/api_test/desktop_capture/test.js
|
| @@ -134,15 +134,21 @@ chrome.test.runTests([
|
| // 5. To actually get audio track, user permission is always necessary;
|
| // 6. To actually get audio track, getUserMedia() should set audio
|
| // constraint.
|
| - function tabShareWithAudioPermissionGetStream() {
|
| - chrome.desktopCapture.chooseDesktopMedia(
|
| - ["tab", "audio"], onPickerResult.bind(undefined, 1));
|
| - },
|
|
|
| - function windowShareWithAudioPermissionGetStream() {
|
| - chrome.desktopCapture.chooseDesktopMedia(
|
| - ["window", "audio"], onPickerResult.bind(undefined, 0));
|
| - },
|
| + // Only screenShare can be tested currently, because "chooseDesktopMedia" will
|
| + // return fake source id to tab/windowShare, with which tab/window catpure
|
| + // can't be started successfully.
|
| + // TODO(braveyao): get below cases working again. http://crbug.com/699201
|
| +
|
| + //function tabShareWithAudioPermissionGetStream() {
|
| + // chrome.desktopCapture.chooseDesktopMedia(
|
| + // ["tab", "audio"], onPickerResult.bind(undefined, 1));
|
| + //},
|
| +
|
| + //function windowShareWithAudioPermissionGetStream() {
|
| + // chrome.desktopCapture.chooseDesktopMedia(
|
| + // ["window", "audio"], onPickerResult.bind(undefined, 0));
|
| + //},
|
|
|
| function screenShareWithAudioPermissionGetStream() {
|
| chrome.desktopCapture.chooseDesktopMedia(
|
| @@ -151,15 +157,15 @@ chrome.test.runTests([
|
| expected_audio_tracks_for_screen_share));
|
| },
|
|
|
| - function tabShareWithoutAudioPermissionGetStream() {
|
| - chrome.desktopCapture.chooseDesktopMedia(
|
| - ["tab", "audio"], onPickerResult.bind(undefined, 0));
|
| - },
|
| + //function tabShareWithoutAudioPermissionGetStream() {
|
| + // chrome.desktopCapture.chooseDesktopMedia(
|
| + // ["tab", "audio"], onPickerResult.bind(undefined, 0));
|
| + //},
|
|
|
| - function windowShareWithoutAudioPermissionGetStream() {
|
| - chrome.desktopCapture.chooseDesktopMedia(
|
| - ["window", "audio"], onPickerResult.bind(undefined, 0));
|
| - },
|
| + //function windowShareWithoutAudioPermissionGetStream() {
|
| + // chrome.desktopCapture.chooseDesktopMedia(
|
| + // ["window", "audio"], onPickerResult.bind(undefined, 0));
|
| + //},
|
|
|
| function screenShareWithoutAudioPermissionGetStream() {
|
| chrome.desktopCapture.chooseDesktopMedia(
|
|
|