| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |