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

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

Issue 2270993003: MD History: Add icon in top right of page when showing synced results (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@downloads_wide_toolbar
Patch Set: Move to MD-specific strings Created 4 years, 3 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
« no previous file with comments | « chrome/browser/ui/webui/md_history_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 50b7265ee7e00dc017ddd536dbe1c42e8d790f4b..b16793c473b3c339c672eaad494969ba78c3f845 100644
--- a/chrome/test/data/webui/md_history/history_toolbar_test.js
+++ b/chrome/test/data/webui/md_history/history_toolbar_test.js
@@ -11,13 +11,17 @@ cr.define('md_history.history_toolbar_test', function() {
var TEST_HISTORY_RESULTS;
suiteSetup(function() {
- app = $('history-app');
- element = app.$['history'].$['infinite-list'];
- toolbar = app.$['toolbar'];
TEST_HISTORY_RESULTS =
[createHistoryEntry('2016-03-15', 'https://google.com')];
});
+ setup(function() {
+ app = replaceApp();
+ element = app.$['history'].$['infinite-list'];
+ toolbar = app.$['toolbar'];
+ return flush();
+ });
+
test('selecting checkbox causes toolbar to change', function() {
element.addNewResults(TEST_HISTORY_RESULTS);
@@ -90,10 +94,8 @@ cr.define('md_history.history_toolbar_test', function() {
});
teardown(function() {
- element.historyData_ = [];
- element.searchedTerm = '';
- registerMessageCallback('queryHistory', this, undefined);
- toolbar.count = 0;
+ registerMessageCallback('queryHistory', this, function() {});
+ app.set('queryState_.searchTerm', '');
});
});
}
« no previous file with comments | « chrome/browser/ui/webui/md_history_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698