OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 /** | 5 /** |
6 * TestFixture for kiosk app settings WebUI testing. | 6 * TestFixture for kiosk app settings WebUI testing. |
7 * @extends {testing.Test} | 7 * @extends {testing.Test} |
8 * @constructor | 8 * @constructor |
9 **/ | 9 */ |
10 function AppListStartPageWebUITest() {} | 10 function AppListStartPageWebUITest() {} |
11 | 11 |
12 /** | 12 /** |
13 * Mock of audioContext. | 13 * Mock of audioContext. |
14 * @constructor | 14 * @constructor |
15 */ | 15 */ |
16 function mockAudioContext() { | 16 function mockAudioContext() { |
17 this.sampleRate = 44100; /* some dummy number */ | 17 this.sampleRate = 44100; /* some dummy number */ |
18 } | 18 } |
19 | 19 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 Mock4JS.verifyAllMocks(); | 205 Mock4JS.verifyAllMocks(); |
206 Mock4JS.clearMocksToVerify(); | 206 Mock4JS.clearMocksToVerify(); |
207 | 207 |
208 this.mockHandler.expects(once()).speechResult('test,true'); | 208 this.mockHandler.expects(once()).speechResult('test,true'); |
209 this.mockHandler.expects(once()).setSpeechRecognitionState('READY'); | 209 this.mockHandler.expects(once()).setSpeechRecognitionState('READY'); |
210 for (var i = 0; i < this.audioTrackMocks.length; ++i) { | 210 for (var i = 0; i < this.audioTrackMocks.length; ++i) { |
211 this.audioTrackMocks[i].expects(once()).stop(); | 211 this.audioTrackMocks[i].expects(once()).stop(); |
212 } | 212 } |
213 this.sendSpeechResult('test', true); | 213 this.sendSpeechResult('test', true); |
214 }); | 214 }); |
OLD | NEW |