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

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

Issue 1974713002: [MD History] Unify query state in history-app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@secondary_toolbar
Patch Set: address comments Created 4 years, 7 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/test/data/webui/md_history/history_supervised_user_test.js ('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 cb0758212114b571e9053fc3306a6b7d85f80bf5..b2c9cb025246925571b733561fe7b67e25c279fe 100644
--- a/chrome/test/data/webui/md_history/history_toolbar_test.js
+++ b/chrome/test/data/webui/md_history/history_toolbar_test.js
@@ -17,7 +17,7 @@ cr.define('md_history.history_toolbar_test', function() {
});
test('selecting checkbox causes toolbar to change', function(done) {
- element.addNewResults(TEST_HISTORY_RESULTS, '');
+ element.addNewResults(TEST_HISTORY_RESULTS);
flush(function() {
var item = element.$$('history-item');
@@ -53,7 +53,7 @@ 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], 'example.com');
+ assertEquals('example.com', info[0]);
flush(function() {
assertEquals(toolbar.$$('#search-input').$$('#search-input').value,
'example.com');
@@ -67,6 +67,7 @@ cr.define('md_history.history_toolbar_test', function() {
teardown(function() {
element.historyData = [];
+ element.searchedTerm = '';
registerMessageCallback('queryHistory', this, undefined);
toolbar.count = 0;
});
« no previous file with comments | « chrome/test/data/webui/md_history/history_supervised_user_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698