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

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

Issue 2926233002: MD Bookmarks: Add right-click context menu to sidebar folders (Closed)
Patch Set: Don't reselect folder Created 3 years, 6 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_bookmarks/folder_node_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_bookmarks/test_command_manager.js
diff --git a/chrome/test/data/webui/md_bookmarks/test_command_manager.js b/chrome/test/data/webui/md_bookmarks/test_command_manager.js
index 7dbc970708454e7b9e27ee1320a2e17edfd8aadd..3891435ee60e1f8dfe4e921ef81f698275361f6e 100644
--- a/chrome/test/data/webui/md_bookmarks/test_command_manager.js
+++ b/chrome/test/data/webui/md_bookmarks/test_command_manager.js
@@ -19,7 +19,11 @@ function TestCommandManager() {
realHandle(command, itemIds);
};
- commandManager.assertLastCommand = function (command, ids) {
+ /**
+ * @param {Command} command
+ * @param {!Array<string>} ids
+ */
+ commandManager.assertLastCommand = function(command, ids) {
assertEquals(command, lastCommand);
if (ids)
assertDeepEquals(ids, normalizeSet(lastCommandIds));
@@ -27,5 +31,10 @@ function TestCommandManager() {
lastCommandIds = null;
};
+ /** @param {!Array<string>} ids */
+ commandManager.assertMenuOpenForIds = function(ids) {
+ assertDeepEquals(ids, normalizeSet(commandManager.menuIds_));
+ };
+
return commandManager;
}
« no previous file with comments | « chrome/test/data/webui/md_bookmarks/folder_node_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698