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

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

Issue 2068613002: [MD History] Add URL parameter for search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@routing
Patch Set: rebase Created 4 years, 5 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_list_test.js
diff --git a/chrome/test/data/webui/md_history/history_list_test.js b/chrome/test/data/webui/md_history/history_list_test.js
index 0ccad6a453a07b595909a15ac7015bf958680251..510813770b7eb621aa306be4426d97c1743f64a2 100644
--- a/chrome/test/data/webui/md_history/history_list_test.js
+++ b/chrome/test/data/webui/md_history/history_list_test.js
@@ -231,10 +231,13 @@ cr.define('md_history.history_list_test', function() {
});
});
- teardown(function() {
+ teardown(function(done) {
element.historyData_ = [];
- element.searchedTerm = '';
registerMessageCallback('removeVisits', this, undefined);
+ registerMessageCallback('queryHistory', this, undefined);
+ app.queryState_.queryingDisabled = true;
+ app.set('queryState_.searchTerm', '');
+ flush().then(done);
tsergeant 2016/07/19 03:32:20 You should just be able to return flush(); witho
calamity 2016/07/19 04:35:33 Done.
});
});
}

Powered by Google App Engine
This is Rietveld 408576698