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

Side by Side Diff: chrome/test/data/webui/md_history/md_history_browsertest.js

Issue 2237703004: [MD History] Focus the search bar on load. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 * @fileoverview Test suite for the Material Design history page. 6 * @fileoverview Test suite for the Material Design history page.
7 */ 7 */
8 8
9 var ROOT_PATH = '../../../../../'; 9 var ROOT_PATH = '../../../../../';
10 10
(...skipping 30 matching lines...) Expand all
41 ]), 41 ]),
42 42
43 /** @override */ 43 /** @override */
44 setUp: function() { 44 setUp: function() {
45 PolymerTest.prototype.setUp.call(this); 45 PolymerTest.prototype.setUp.call(this);
46 46
47 suiteSetup(function() { 47 suiteSetup(function() {
48 // Wait for the top-level app element to be upgraded. 48 // Wait for the top-level app element to be upgraded.
49 return waitForAppUpgrade().then(function() { 49 return waitForAppUpgrade().then(function() {
50 $('history-app').queryState_.queryingDisabled = true; 50 $('history-app').queryState_.queryingDisabled = true;
51
52 // Ensure the search bar is focused on load.
53 assertTrue(
54 $('history-app')
55 .$.toolbar.$['main-toolbar']
56 .getSearchField()
57 .isSearchFocused());
51 }); 58 });
52 }); 59 });
53 }, 60 },
54 }; 61 };
55 62
56 TEST_F('MaterialHistoryBrowserTest', 'BrowserServiceTest', function() { 63 TEST_F('MaterialHistoryBrowserTest', 'BrowserServiceTest', function() {
57 md_history.browser_service_test.registerTests(); 64 md_history.browser_service_test.registerTests();
58 mocha.run(); 65 mocha.run();
59 }); 66 });
60 67
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 return waitForAppUpgrade(); 148 return waitForAppUpgrade();
142 }); 149 });
143 }, 150 },
144 }; 151 };
145 152
146 TEST_F('MaterialHistoryWithQueryParamTest', 'RoutingTestWithQueryParam', 153 TEST_F('MaterialHistoryWithQueryParamTest', 'RoutingTestWithQueryParam',
147 function() { 154 function() {
148 md_history.history_routing_test_with_query_param.registerTests(); 155 md_history.history_routing_test_with_query_param.registerTests();
149 mocha.run(); 156 mocha.run();
150 }); 157 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698