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

Unified Diff: chrome/test/data/webui/settings/search_page_test.js

Issue 2804593003: MD Settings: Search engine: Request hotword info on engine change (Closed)
Patch Set: Fix tests Created 3 years, 8 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/settings/search_page/search_page.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/search_page_test.js
diff --git a/chrome/test/data/webui/settings/search_page_test.js b/chrome/test/data/webui/settings/search_page_test.js
index a8394f176ab0acaa4af2b957793e19a7bcc54111..e763544af59ff2171f92e9b0f3c10f5a18879524 100644
--- a/chrome/test/data/webui/settings/search_page_test.js
+++ b/chrome/test/data/webui/settings/search_page_test.js
@@ -101,7 +101,9 @@ cr.define('settings_search_page', function() {
// Tests the UI when Hotword 'alwaysOn' is true.
test('HotwordAlwaysOn', function() {
- return browserProxy.whenCalled('getHotwordInfo').then(function() {
+ return browserProxy.whenCalled('getSearchEnginesList').then(function() {
+ return browserProxy.whenCalled('getHotwordInfo');
+ }).then(function() {
Polymer.dom.flush();
assertTrue(page.hotwordInfo_.allowed);
assertTrue(page.hotwordInfo_.alwaysOn);
@@ -123,7 +125,9 @@ cr.define('settings_search_page', function() {
// Tests the UI when Hotword 'alwaysOn' is false.
test('HotwordNotAlwaysOn', function() {
- return browserProxy.whenCalled('getHotwordInfo').then(function() {
+ return browserProxy.whenCalled('getSearchEnginesList').then(function() {
+ return browserProxy.whenCalled('getHotwordInfo');
+ }).then(function() {
browserProxy.setHotwordInfo({
allowed: true,
enabled: false,
« no previous file with comments | « chrome/browser/resources/settings/search_page/search_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698