| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 TEST_F('MaterialHistoryRoutingTest', 'All', function() { | 166 TEST_F('MaterialHistoryRoutingTest', 'All', function() { |
| 167 md_history.history_routing_test.registerTests(); | 167 md_history.history_routing_test.registerTests(); |
| 168 mocha.run(); | 168 mocha.run(); |
| 169 }); | 169 }); |
| 170 | 170 |
| 171 function MaterialHistoryRoutingWithQueryParamTest() {} | 171 function MaterialHistoryRoutingWithQueryParamTest() {} |
| 172 | 172 |
| 173 MaterialHistoryRoutingWithQueryParamTest.prototype = { | 173 MaterialHistoryRoutingWithQueryParamTest.prototype = { |
| 174 __proto__: MaterialHistoryRoutingTest.prototype, | 174 __proto__: MaterialHistoryRoutingTest.prototype, |
| 175 | 175 |
| 176 browsePreload: 'chrome://history?q=query', | 176 browsePreload: 'chrome://history/history/week?q=query&offset=5', |
| 177 |
| 178 commandLineSwitches: |
| 179 MaterialHistoryBrowserTest.prototype.commandLineSwitches.concat([ |
| 180 {switchName: 'enable-grouped-history'} |
| 181 ]), |
| 177 | 182 |
| 178 /** @override */ | 183 /** @override */ |
| 179 setUp: function() { | 184 setUp: function() { |
| 180 PolymerTest.prototype.setUp.call(this); | 185 PolymerTest.prototype.setUp.call(this); |
| 181 // This message handler needs to be registered before the test since the | 186 // This message handler needs to be registered before the test since the |
| 182 // query can happen immediately after the element is upgraded. However, | 187 // query can happen immediately after the element is upgraded. However, |
| 183 // since there may be a delay as well, the test might check the global var | 188 // since there may be a delay as well, the test might check the global var |
| 184 // too early as well. In this case the test will have overtaken the | 189 // too early as well. In this case the test will have overtaken the |
| 185 // callback. | 190 // callback. |
| 186 registerMessageCallback('queryHistory', this, function (info) { | 191 registerMessageCallback('queryHistory', this, function (info) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 __proto__: MaterialHistoryBrowserTest.prototype, | 246 __proto__: MaterialHistoryBrowserTest.prototype, |
| 242 | 247 |
| 243 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ | 248 extraLibraries: MaterialHistoryBrowserTest.prototype.extraLibraries.concat([ |
| 244 'history_toolbar_test.js', | 249 'history_toolbar_test.js', |
| 245 ]), | 250 ]), |
| 246 }; | 251 }; |
| 247 | 252 |
| 248 TEST_F('MaterialHistoryToolbarTest', 'All', function() { | 253 TEST_F('MaterialHistoryToolbarTest', 'All', function() { |
| 249 mocha.run(); | 254 mocha.run(); |
| 250 }); | 255 }); |
| OLD | NEW |