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

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

Issue 2956213002: [MD Bookmarks] Make disabled buttons in context menu do nothing when clicked. (Closed)
Patch Set: 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/browser/resources/md_bookmarks/command_manager.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/command_manager_test.js
diff --git a/chrome/test/data/webui/md_bookmarks/command_manager_test.js b/chrome/test/data/webui/md_bookmarks/command_manager_test.js
index 47c55630ee3b02db4b10b42e3e660961048434c0..9f745489cf7891c7469573fd4312a760593fa3ae 100644
--- a/chrome/test/data/webui/md_bookmarks/command_manager_test.js
+++ b/chrome/test/data/webui/md_bookmarks/command_manager_test.js
@@ -259,6 +259,13 @@ suite('<bookmarks-command-manager>', function() {
commandManager.root.querySelectorAll('hr').forEach(element => {
assertTrue(element.hidden);
});
+
+ var commandItem = {};
tsergeant 2017/06/28 04:42:06 I think this is the slightly wrong place to put th
calamity 2017/06/28 04:55:06 Done.
+ commandManager.root.querySelectorAll('.dropdown-item').forEach(element => {
+ commandItem[element.getAttribute('command')] = element;
+ });
+ MockInteractions.tap(commandItem[Command.EDIT]);
+ commandManager.assertLastCommand(null);
});
test('cannot edit unmodifiable nodes', function() {
« no previous file with comments | « chrome/browser/resources/md_bookmarks/command_manager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698