1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 function supportsMediaConstraints() {
7 chrome
.tabCapture
.capture({
17 chrome
.test
.assertTrue(!!stream
);
19 chrome
.test
.succeed();
23 function rejectsOptionalMediaConstraints() {
24 chrome
.tabCapture
.capture({
36 chrome
.test
.assertTrue(!stream
);
37 chrome
.test
.succeed();
41 function rejectsInvalidConstraints() {
42 chrome
.tabCapture
.capture({
51 chrome
.test
.assertTrue(!stream
);
53 chrome
.tabCapture
.capture({
61 chrome
.test
.assertTrue(!stream
);
62 chrome
.test
.succeed();