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

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

Issue 2656443004: MD History: Add routing for grouped history mode. (Closed)
Patch Set: Review comments Created 3 years, 10 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
« no previous file with comments | « chrome/test/data/webui/md_history/history_routing_test.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
OLDNEW
« no previous file with comments | « chrome/test/data/webui/md_history/history_routing_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698