| 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,
|
|
|