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

Unified Diff: chrome/browser/ui/webui/app_list/start_page_browsertest.js

Issue 966983003: Delete all uses of SpeechManager from the app list start page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove tests. Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/app_list/start_page.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
-});
« no previous file with comments | « chrome/browser/resources/app_list/start_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698