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

Unified Diff: chrome/test/data/webui/md_history/history_toolbar_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: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/md_history/history_toolbar_test.js
diff --git a/chrome/test/data/webui/md_history/history_toolbar_test.js b/chrome/test/data/webui/md_history/history_toolbar_test.js
index 20d4cfe7d62ed4834e9b4a89b1450574de2ef87c..eba4382ae77acb0a6b6b057f34178a9dc083db0e 100644
--- a/chrome/test/data/webui/md_history/history_toolbar_test.js
+++ b/chrome/test/data/webui/md_history/history_toolbar_test.js
@@ -92,7 +92,21 @@ cr.define('md_history.history_toolbar_test', function() {
})
});
+ test('more from this site sends and sets correct data', function(done) {
+ registerMessageCallback('queryHistory', this, function (info) {
+ assertEquals(info[0], 'Test');
+ done();
+ });
+
+ element.menuIdentifier = [];
calamity 2016/02/03 05:09:13 Use {}.
hsampson 2016/02/08 00:39:37 Done.
+ element.menuIdentifier.domain = 'Test';
+ element.onMoreFromSiteTap_();
+ assertEquals(toolbar.$$('#search-input').$$('#search-input').value,
+ 'Test');
+ });
+
teardown(function() {
+ element.searchTerm = '';
element.historyDataByDay_ = [];
toolbar.count = 0;
});

Powered by Google App Engine
This is Rietveld 408576698