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

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

Issue 2578473002: chrome.audio API: treat mute as system wide property (Closed)
Patch Set: . Created 3 years, 11 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(evt) {
10 chrome.test.assertFalse(isInput); 10 chrome.test.assertEq('OUTPUT', evt.streamType);
11 chrome.test.assertFalse(isMuted); 11 chrome.test.assertFalse(evt.value);
12 }); 12 });
13 } 13 }
14 ]); 14 ]);
15 15
16 chrome.test.sendMessage('loaded'); 16 chrome.test.sendMessage('loaded');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698