chromium/chrome/test/data/extensions/api_test/tab_capture/start_tab_capture/start_tab_capture.js

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

chrome.test.runTests([
  function startTabCapture() {
    chrome.tabCapture.capture({audio: false, video: true}, function(stream) {
      if (stream)
        chrome.test.succeed();
      else
        chrome.test.fail();
    });
  }
]);