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

Unified Diff: chrome/test/data/webui/md_bookmarks/sidebar_test.js

Issue 2645273002: [MD Bookmarks] Modify search to retain the previously selected folder. (Closed)
Patch Set: Rebase and update test to use selectFolder. Created 3 years, 10 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_bookmarks/store.js ('k') | chrome/test/data/webui/md_bookmarks/store_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/md_bookmarks/sidebar_test.js
diff --git a/chrome/test/data/webui/md_bookmarks/sidebar_test.js b/chrome/test/data/webui/md_bookmarks/sidebar_test.js
index 6cb1212bbcad7ac6c593c5f1db23f7bb0fd15474..df909581585f594e7e30463f4d35fea9753f010f 100644
--- a/chrome/test/data/webui/md_bookmarks/sidebar_test.js
+++ b/chrome/test/data/webui/md_bookmarks/sidebar_test.js
@@ -31,9 +31,10 @@ suite('<bookmarks-sidebar>', function() {
});
test('selecting and deselecting folders fires event', function() {
- var firedId;
+ var firedId, clearSearch;
document.addEventListener('selected-folder-changed', function(e) {
- firedId = /** @type {string} */ (e.detail);
+ firedId = /** @type {string} */ (e.detail.id);
+ clearSearch = /** @type {string} */ (e.detail.clearSearch);
});
Polymer.dom.flush();
@@ -47,6 +48,7 @@ suite('<bookmarks-sidebar>', function() {
firedId = '';
MockInteractions.tap(secondGen[0].$['folder-label']);
assertEquals(secondGen[0].item.id, firedId);
+ assertTrue(clearSearch);
// Select folder in a separate subtree.
firedId = '';
« no previous file with comments | « chrome/browser/resources/md_bookmarks/store.js ('k') | chrome/test/data/webui/md_bookmarks/store_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698