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

Unified Diff: chrome/test/data/extensions/api_test/tab_capture/constraints.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/constraints.js
diff --git a/chrome/test/data/extensions/api_test/tab_capture/constraints.js b/chrome/test/data/extensions/api_test/tab_capture/constraints.js
index ba6ce24017f80f894b64643400fe45a21c01705e..9f652d5729171540f13bd9536566cdfc4991d6d8 100644
--- a/chrome/test/data/extensions/api_test/tab_capture/constraints.js
+++ b/chrome/test/data/extensions/api_test/tab_capture/constraints.js
@@ -20,7 +20,7 @@ chrome.test.runTests([
});
},
- function supportsOptionalMediaConstraints() {
+ function rejectsOptionalMediaConstraints() {
chrome.tabCapture.capture({
video: true,
audio: true,
@@ -36,5 +36,31 @@ chrome.test.runTests([
chrome.test.assertTrue(!stream);
chrome.test.succeed();
});
+ },
+
+ function rejectsInvalidConstraints() {
+ chrome.tabCapture.capture({
+ video: true,
+ audio: true,
+ videoConstraints: {
+ mandatory: {
+ notValid: '123'
+ }
+ }
+ }, function(stream) {
+ chrome.test.assertTrue(!stream);
+
+ chrome.tabCapture.capture({
miu 2014/11/19 01:15:54 This is the second test from api_tests_audio.js, w
+ audio: true,
+ audioConstraints: {
+ mandatory: {
+ notValid: '123'
+ }
+ }
+ }, function(stream) {
+ chrome.test.assertTrue(!stream);
+ chrome.test.succeed();
+ });
+ });
}
]);

Powered by Google App Engine
This is Rietveld 408576698