Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4772)

Unified Diff: chrome/test/data/extensions/api_test/tab_capture/api_tests_audio.js

Issue 734853003: Misc clean-up of TabCaptureApiTests; and re-enable more tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/tab_capture/api_tests_audio.js
diff --git a/chrome/test/data/extensions/api_test/tab_capture/api_tests_audio.js b/chrome/test/data/extensions/api_test/tab_capture/api_tests_audio.js
deleted file mode 100644
index c4b4139e9832ebbe6a2b035aaa8241c93e727af5..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/tab_capture/api_tests_audio.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2014 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 onlyAudio() {
miu 2014/11/19 01:15:54 This moved into api_tests.js.
- tabCapture.capture({audio: true}, function(stream) {
- chrome.test.assertTrue(!!stream);
- stream.stop();
- chrome.test.succeed();
- });
- },
-
- function invalidAudioConstraints() {
miu 2014/11/19 01:15:54 This moved into constraints.js.
- var tabCaptureListener = function(info) {
- if (info.status == 'stopped') {
- tabCapture.onStatusChanged.removeListener(tabCaptureListener);
-
- tabCapture.capture({audio: true, video: true}, function(stream) {
- chrome.test.assertTrue(!!stream);
- chrome.test.succeed();
- });
- }
- };
- tabCapture.onStatusChanged.addListener(tabCaptureListener);
-
- tabCapture.capture({audio: true,
- audioConstraints: {
- 'mandatory': {
- 'notValid': '123'
- }
- }}, function(stream) {
- chrome.test.assertTrue(!stream);
- });
- }
-
-]);

Powered by Google App Engine
This is Rietveld 408576698