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

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

Issue 2940233003: MD Bookmarks: Lazily render dropdown menus (Closed)
Patch Set: Rebase 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/command_manager_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/toolbar_test.js
diff --git a/chrome/test/data/webui/md_bookmarks/toolbar_test.js b/chrome/test/data/webui/md_bookmarks/toolbar_test.js
index 8fc0282c8a7367518d8b909b2bd548c6f6dc4032..f01fcf6d90dbe7d02345fb3e682353a476abf0d0 100644
--- a/chrome/test/data/webui/md_bookmarks/toolbar_test.js
+++ b/chrome/test/data/webui/md_bookmarks/toolbar_test.js
@@ -88,21 +88,24 @@ suite('<bookmarks-toolbar>', function() {
});
test('overflow menu options are disabled when appropriate', function() {
+ MockInteractions.tap(toolbar.$.menuButton);
+ Polymer.dom.flush();
+
store.data.selectedFolder = '1';
store.notifyObservers();
- assertFalse(toolbar.$.addBookmarkButton.disabled);
+ assertFalse(toolbar.$$('#addBookmarkButton').disabled);
store.data.selectedFolder = '4';
store.notifyObservers();
- assertTrue(toolbar.$.addBookmarkButton.disabled);
- assertFalse(toolbar.$.importBookmarkButton.disabled);
+ assertTrue(toolbar.$$('#addBookmarkButton').disabled);
+ assertFalse(toolbar.$$('#importBookmarkButton').disabled);
store.data.prefs.canEdit = false;
store.notifyObservers();
- assertTrue(toolbar.$.addBookmarkButton.disabled);
- assertTrue(toolbar.$.importBookmarkButton.disabled);
+ assertTrue(toolbar.$$('#addBookmarkButton').disabled);
+ assertTrue(toolbar.$$('#importBookmarkButton').disabled);
});
});
« no previous file with comments | « chrome/test/data/webui/md_bookmarks/command_manager_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698