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

Unified Diff: chrome/test/data/extensions/api_test/tab_capture/api_tests.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.js
diff --git a/chrome/test/data/extensions/api_test/tab_capture/api_tests.js b/chrome/test/data/extensions/api_test/tab_capture/api_tests.js
index 06e50224d81085cdf51fe6444356aeba934a3ca7..8f3e1d168ffaf9d2717c2d1ad3448292348cdd90 100644
--- a/chrome/test/data/extensions/api_test/tab_capture/api_tests.js
+++ b/chrome/test/data/extensions/api_test/tab_capture/api_tests.js
@@ -45,7 +45,7 @@ chrome.test.runTests([
}
// Step 4: After the second tab is closed, check that getCapturedTabs()
- // returns no info at all about the second tab. http://crbug.com/338445
+ // returns no info at all about the second tab.
chrome.tabs.onRemoved.addListener(function() {
tabCapture.getCapturedTabs(function checkNoInfos(infos) {
checkInfoForSecondTabHasStatus(infos, null);
@@ -105,6 +105,14 @@ chrome.test.runTests([
});
},
+ function onlyAudio() {
+ tabCapture.capture({audio: true}, function(stream) {
+ chrome.test.assertTrue(!!stream);
+ stream.stop();
+ chrome.test.succeed();
+ });
+ },
+
function noAudioOrVideoRequested() {
// If not specified, video is not requested.
tabCapture.capture({audio: false}, function(stream) {
@@ -112,5 +120,4 @@ chrome.test.runTests([
chrome.test.succeed();
});
}
-
]);

Powered by Google App Engine
This is Rietveld 408576698