| Index: chrome/browser/ui/webui/app_list/start_page_browsertest.js
|
| diff --git a/chrome/browser/ui/webui/app_list/start_page_browsertest.js b/chrome/browser/ui/webui/app_list/start_page_browsertest.js
|
| index 5a0511d130c8ca6c9c0ccea1e515110bc02fcd20..84869c4f54045d1c0988c2f2471b2c84670ff8b5 100644
|
| --- a/chrome/browser/ui/webui/app_list/start_page_browsertest.js
|
| +++ b/chrome/browser/ui/webui/app_list/start_page_browsertest.js
|
| @@ -159,58 +159,3 @@ TEST_F('AppListStartPageWebUITest', 'LoadDoodle', function() {
|
| 'http://example.com/');
|
| assertEquals(null, $('doodle'));
|
| });
|
| -
|
| -TEST_F('AppListStartPageWebUITest', 'SpeechRecognitionState', function() {
|
| - this.mockHandler.expects(once()).setSpeechRecognitionState('READY');
|
| - appList.startPage.onAppListShown(false, true);
|
| - this.mockHandler.expects(once()).setSpeechRecognitionState('RECOGNIZING');
|
| - appList.startPage.toggleSpeechRecognition();
|
| - Mock4JS.verifyAllMocks();
|
| - Mock4JS.clearMocksToVerify();
|
| -
|
| - this.mockHandler.expects(once()).setSpeechRecognitionState('READY');
|
| - for (var i = 0; i < this.audioTrackMocks.length; ++i) {
|
| - this.audioTrackMocks[i].expects(once()).stop();
|
| - }
|
| - appList.startPage.toggleSpeechRecognition();
|
| - Mock4JS.verifyAllMocks();
|
| - Mock4JS.clearMocksToVerify();
|
| -
|
| - this.mockHandler.expects(once()).setSpeechRecognitionState('RECOGNIZING');
|
| - appList.startPage.toggleSpeechRecognition();
|
| - Mock4JS.verifyAllMocks();
|
| - Mock4JS.clearMocksToVerify();
|
| -
|
| - this.mockHandler.expects(once()).setSpeechRecognitionState('STOPPING');
|
| - this.mockHandler.expects(once()).setSpeechRecognitionState('READY');
|
| - for (var i = 0; i < this.audioTrackMocks.length; ++i) {
|
| - this.audioTrackMocks[i].expects(once()).stop();
|
| - }
|
| - appList.startPage.onAppListHidden();
|
| -});
|
| -
|
| -TEST_F('AppListStartPageWebUITest', 'SpeechRecognition', function() {
|
| - this.mockHandler.expects(once()).setSpeechRecognitionState('READY');
|
| - appList.startPage.onAppListShown(false, true);
|
| - this.mockHandler.expects(once()).setSpeechRecognitionState('RECOGNIZING');
|
| - appList.startPage.toggleSpeechRecognition();
|
| - Mock4JS.verifyAllMocks();
|
| - Mock4JS.clearMocksToVerify();
|
| -
|
| - this.mockHandler.expects(once()).setSpeechRecognitionState('IN_SPEECH');
|
| - this.speechRecognizer.onspeechstart();
|
| - Mock4JS.verifyAllMocks();
|
| - Mock4JS.clearMocksToVerify();
|
| -
|
| - this.mockHandler.expects(once()).speechResult('test,false');
|
| - this.sendSpeechResult('test', false);
|
| - Mock4JS.verifyAllMocks();
|
| - Mock4JS.clearMocksToVerify();
|
| -
|
| - this.mockHandler.expects(once()).speechResult('test,true');
|
| - this.mockHandler.expects(once()).setSpeechRecognitionState('READY');
|
| - for (var i = 0; i < this.audioTrackMocks.length; ++i) {
|
| - this.audioTrackMocks[i].expects(once()).stop();
|
| - }
|
| - this.sendSpeechResult('test', true);
|
| -});
|
|
|