| OLD | NEW |
| 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([function waitForMuteChangedEventTests() { |
| 6 function waitForMuteChangedEventTests() { | 6 chrome.test.listenOnce(chrome.audio.onMuteChanged, function(evt) { |
| 7 chrome.test.listenOnce( | 7 chrome.test.assertEq('INPUT', evt.streamType); |
| 8 chrome.audio.OnMuteChanged, | 8 chrome.test.assertTrue(evt.isMuted); |
| 9 function(isInput, isMuted) { | 9 }); |
| 10 chrome.test.assertTrue(isInput); | 10 }]); |
| 11 chrome.test.assertTrue(isMuted); | |
| 12 }); | |
| 13 } | |
| 14 ]); | |
| 15 | 11 |
| 16 chrome.test.sendMessage('loaded'); | 12 chrome.test.sendMessage('loaded'); |
| OLD | NEW |