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

Unified Diff: chrome/test/data/webui/md_history/history_card_test.js

Issue 1648803003: MD History: Drop-down menu allows searching for history-items by domain name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@search_functionality
Patch Set: Address reviewer comments and small fixes. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/md_history/history_card_test.js
diff --git a/chrome/test/data/webui/md_history/history_card_test.js b/chrome/test/data/webui/md_history/history_card_test.js
index 25c5fa4a01159fcd97058215f08e070f88882d82..45366335aaced02adf2b2c1c832ace7cc0eea11f 100644
--- a/chrome/test/data/webui/md_history/history_card_test.js
+++ b/chrome/test/data/webui/md_history/history_card_test.js
@@ -7,11 +7,14 @@ cr.define('md_history.history_card_test', function() {
suite('history-card', function() {
test('basic separator insertion', function(done) {
var element = document.createElement('history-card');
- element.historyItems = [
- {"time": "1000000000"},
- {"time": "10000000"},
- {"time": "900000"}
- ];
+ var historyItems = [];
+ var time = 1000000000;
+ for (var i = 0; i < 3; i++) {
+ historyItems.push(createHistoryEntry(time, "https://example.com"));
+ time = time / 100;
+ }
+ element.historyItems = historyItems;
+
flush(function() {
// Check that the correct number of time gaps are inserted.
var spacers =

Powered by Google App Engine
This is Rietveld 408576698