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

Side by Side Diff: chrome/test/data/extensions/api_test/tab_capture/experimental/test.js

Issue 10928043: Media Related changes for TabCapture API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial Created 8 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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.
4
5 var tabCapture = chrome.experimental.tabCapture;
6 var tabMediaRequestCallback = function(stream) {
7 chrome.test.assertFalse(null == stream);
8 chrome.test.succeed();
9 };
10
11 function runTests(tests) {
12 chrome.test.getConfig(function(config) {
13 operatingSystem = config.osName;
14 chrome.test.runTests(tests);
15 });
16 }
17
18 chrome.test.runTests([
19 function getTabMedia() {
20 tabCapture.getTabMedia(null, null,
21 chrome.test.callbackPass(tabMediaRequestCallback));
22 }
23 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698