Chromium Code Reviews| 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..435f9aff60a608de74fb23523463bd337cb0afe8 100644 |
| --- a/chrome/test/data/extensions/api_test/desktop_capture/test.js |
| +++ b/chrome/test/data/extensions/api_test/desktop_capture/test.js |
| @@ -123,27 +123,8 @@ chrome.test.runTests([ |
| chrome.test.succeed(); |
| }, |
| - // For the following six, they all request audio track. Based on user's |
| - // permission and the source type, it may or may not actually get the audio |
| - // track. |
| - // In detail: |
| - // 1. We cannot support audio for Window share; |
| - // 2. We can support audio for Tab share; |
| - // 3. We can support audio for Screen share on Windows; |
| - // 4. We can support audio for Screen Share on ChromeOS if USE_CRAS is on; |
| - // 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 as below, because we can't get stream with |
| + // fake web-content/window source id. |
|
chfremer
2017/03/02 17:56:10
I don't immediately see why the changes in this CL
braveyao
2017/03/03 17:53:12
Revised the comments a bit. Is it better?
chfremer
2017/03/03 19:08:33
The extra information in the new comment seems hel
braveyao
2017/03/03 21:34:55
Before this cl, gUM always get successful callback
|
| function screenShareWithAudioPermissionGetStream() { |
| chrome.desktopCapture.chooseDesktopMedia( |
| ["screen", "audio"], |
| @@ -151,16 +132,6 @@ chrome.test.runTests([ |
| expected_audio_tracks_for_screen_share)); |
| }, |
| - function tabShareWithoutAudioPermissionGetStream() { |
| - chrome.desktopCapture.chooseDesktopMedia( |
| - ["tab", "audio"], onPickerResult.bind(undefined, 0)); |
| - }, |
| - |
| - function windowShareWithoutAudioPermissionGetStream() { |
| - chrome.desktopCapture.chooseDesktopMedia( |
| - ["window", "audio"], onPickerResult.bind(undefined, 0)); |
| - }, |
| - |
| function screenShareWithoutAudioPermissionGetStream() { |
| chrome.desktopCapture.chooseDesktopMedia( |
| ["screen", "audio"], onPickerResult.bind(undefined, 0)); |