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

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

Issue 2799653003: MD Bookmarks: Implement 'Sort by Title' menu button (Closed)
Patch Set: Created 3 years, 8 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/toolbar.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_bookmarks/reducers_test.js
diff --git a/chrome/test/data/webui/md_bookmarks/reducers_test.js b/chrome/test/data/webui/md_bookmarks/reducers_test.js
index c4a34f7e50712e28310ea0633bbbf503086b9fe6..5c779842428dea6fbe605f1c23670c4c57c226ca 100644
--- a/chrome/test/data/webui/md_bookmarks/reducers_test.js
+++ b/chrome/test/data/webui/md_bookmarks/reducers_test.js
@@ -341,6 +341,13 @@ suite('node state', function() {
assertDeepEquals(['2', '3'], state['1'].children);
assertDeepEquals(['4'], state['5'].children);
});
+
+ test('updates when children of a node are reordered', function() {
+ action = bookmarks.actions.reorderChildren('1', ['4', '2', '3']);
+ state = bookmarks.NodeState.updateNodes(state, action);
+
+ assertDeepEquals(['4', '2', '3'], state['1'].children);
+ });
});
suite('search state', function() {
« no previous file with comments | « chrome/browser/resources/md_bookmarks/toolbar.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698