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

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

Issue 2643533003: MD History: Use one-way binding for history query state. (Closed)
Patch Set: Remove wrapper function 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 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 e914174b3bc213117df520a0c2d94ece3a0605ea..8fb2ddafa6067b7ca1b9695bbe2bed29b6abfe47 100644
--- a/chrome/test/data/webui/md_history/history_list_test.js
+++ b/chrome/test/data/webui/md_history/history_list_test.js
@@ -445,7 +445,7 @@ suite('<history-list>', function() {
app.$$('history-router').$$('iron-location').dwellTime = 0;
app.queryState_.queryingDisabled = false;
// Navigate from chrome://history/ to chrome://history/?q=something else.
- app.set('queryState_.searchTerm', 'something else');
+ app.fire('change-query', {search: 'something else'});
app.historyResult(createHistoryInfo(), TEST_HISTORY_RESULTS);
app.historyResult(createHistoryInfo(), ADDITIONAL_RESULTS);
@@ -494,6 +494,6 @@ suite('<history-list>', function() {
registerMessageCallback('removeVisits', this, undefined);
registerMessageCallback('queryHistory', this, function() {});
registerMessageCallback('navigateToUrl', this, undefined);
- app.set('queryState_.searchTerm', '');
+ app.fire('change-query', {search: ''});
});
});

Powered by Google App Engine
This is Rietveld 408576698