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

Side by Side Diff: extensions/test/data/api_test/audio/input_mute_change/background.js

Issue 2578473002: chrome.audio API: treat mute as system wide property (Closed)
Patch Set: . Created 3 years, 12 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 chrome.test.runTests([ 5 chrome.test.runTests([
6 function waitForMuteChangedEventTests() { 6 function waitForMuteChangedEventTests() {
7 chrome.test.listenOnce( 7 chrome.test.listenOnce(
8 chrome.audio.OnMuteChanged, 8 chrome.audio.OnMuteChanged,
9 function(isInput, isMuted) { 9 function(isInput, isMuted) {
10 chrome.test.assertTrue(isInput); 10 chrome.test.assertTrue(isInput);
11 chrome.test.assertTrue(isMuted); 11 chrome.test.assertTrue(isMuted);
12 }); 12 });
13 chrome.test.listenOnce(
14 chrome.audio.onMuteStateChanged,
15 function(evt) {
16 chrome.test.assertEq('INPUT', evt.streamType);
17 chrome.test.assertTrue(evt.value);
18 });
13 } 19 }
14 ]); 20 ]);
15 21
16 chrome.test.sendMessage('loaded'); 22 chrome.test.sendMessage('loaded');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698