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

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

Issue 2200233003: MD History: Refresh the list when clearing browsing data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revise test Created 4 years, 4 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/resources/md_history/list_container.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_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 0b69f6eaead76a052d213965fd3a72d1f879ac10..8d6a43405bb28229e8a88d1aeb80d4f76fef67df 100644
--- a/chrome/test/data/webui/md_history/history_list_test.js
+++ b/chrome/test/data/webui/md_history/history_list_test.js
@@ -31,6 +31,10 @@ cr.define('md_history.history_list_test', function() {
];
});
+ setup(function() {
+ app.queryState_.incremental = true;
+ });
+
test('cancelling selection of multiple items', function() {
app.historyResult(createHistoryInfo(), TEST_HISTORY_RESULTS);
return flush().then(function() {
@@ -185,7 +189,7 @@ cr.define('md_history.history_list_test', function() {
assertTrue(items[2].isCardStart);
assertTrue(items[3].isCardEnd);
assertTrue(items[4].isCardStart);
- assertTrue(items[4].isCardEnd)
+ assertTrue(items[4].isCardEnd);
});
});
@@ -274,6 +278,7 @@ cr.define('md_history.history_list_test', function() {
MockInteractions.tap(item.$.checkbox);
assertEquals(1, toolbar.count);
+ app.queryState_.incremental = false;
app.historyResult(
createHistoryInfo('ample'),
@@ -461,6 +466,8 @@ cr.define('md_history.history_list_test', function() {
registerMessageCallback('navigateToUrl', this, undefined);
app.queryState_.queryingDisabled = true;
app.set('queryState_.searchTerm', '');
+ // Unselect all items, clear the list.
+ element.addNewResults([], false);
return flush();
});
});
« no previous file with comments | « chrome/browser/resources/md_history/list_container.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698