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

Side by Side Diff: chrome/test/data/webui/history_browsertest.js

Issue 2570253002: [MD History] Fix toolbar dates in grouped mode. (Closed)
Patch Set: rebase Created 3 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 GEN('#include "chrome/test/data/webui/history_ui_browsertest.h"'); 5 GEN('#include "chrome/test/data/webui/history_ui_browsertest.h"');
6 6
7 /** @const */ var TOTAL_RESULT_COUNT = 160; 7 /** @const */ var TOTAL_RESULT_COUNT = 160;
8 /** @const */ var WAIT_TIMEOUT = 200; 8 /** @const */ var WAIT_TIMEOUT = 200;
9 9
10 /** 10 /**
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 } else if (beginTime) { 254 } else if (beginTime) {
255 queryStartTime = Date(beginTime); 255 queryStartTime = Date(beginTime);
256 queryEndTime = Date(endTime); 256 queryEndTime = Date(endTime);
257 } 257 }
258 258
259 callFrontendAsync( 259 callFrontendAsync(
260 'historyResult', 260 'historyResult',
261 { 261 {
262 term: searchText, 262 term: searchText,
263 finished: finished, 263 finished: finished,
264 queryStartTime: queryStartTime, 264 queryInterval: queryStartTime + ' - ' + queryEndTime,
265 queryEndTime: queryEndTime
266 }, 265 },
267 results); 266 results);
268 } 267 }
269 268
270 /** 269 /**
271 * Fixture for History WebUI testing which returns some fake history results 270 * Fixture for History WebUI testing which returns some fake history results
272 * to the frontend. 271 * to the frontend.
273 * @extends {HistoryWebUIFakeBackendTest} 272 * @extends {HistoryWebUIFakeBackendTest}
274 * @constructor 273 * @constructor
275 */ 274 */
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() { 1133 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() {
1135 // Switch to the week view. 1134 // Switch to the week view.
1136 $('timeframe-controls').querySelectorAll('input')[1].click(); 1135 $('timeframe-controls').querySelectorAll('input')[1].click();
1137 waitForCallback('historyResult', function() { 1136 waitForCallback('historyResult', function() {
1138 // Each URL should be organized under a different "domain". 1137 // Each URL should be organized under a different "domain".
1139 expectEquals(document.querySelectorAll('.entry').length, 4); 1138 expectEquals(document.querySelectorAll('.entry').length, 4);
1140 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4); 1139 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4);
1141 testDone(); 1140 testDone();
1142 }); 1141 });
1143 }); 1142 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/md_history_ui.cc ('k') | chrome/test/data/webui/md_history/history_grouped_list_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698