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

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

Issue 1344753002: Update tests for chrome, as MediaStream label, ended attributes and stop() method will be removed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/tab_capture/active_tab_permission_test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var afterTabOpened = function() { 5 var afterTabOpened = function() {
6 chrome.tabCapture.capture({audio: true, video: true}, function(stream) { 6 chrome.tabCapture.capture({audio: true, video: true}, function(stream) {
7 chrome.test.assertTrue(!!stream); 7 chrome.test.assertTrue(!!stream);
8 stream.stop(); 8 stream.getVideoTracks()[0].stop();
9 stream.getAudioTracks()[0].stop();
9 chrome.test.succeed(); 10 chrome.test.succeed();
10 }); 11 });
11 }; 12 };
12 13
13 chrome.test.notifyPass(); 14 chrome.test.notifyPass();
14 chrome.test.sendMessage('ready1', afterTabOpened); 15 chrome.test.sendMessage('ready1', afterTabOpened);
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/tab_capture/active_tab_permission_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698