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

Unified Diff: chrome/test/data/webui/md_history/history_drawer_test.js

Issue 2627383002: MD History: Replace app-drawer with cr-drawer (Closed)
Patch Set: Use correct close function Created 3 years, 11 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_history/side_bar.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_history/history_drawer_test.js
diff --git a/chrome/test/data/webui/md_history/history_drawer_test.js b/chrome/test/data/webui/md_history/history_drawer_test.js
index 574f73a267488f82a0d4cb5d2c862b821c6849a8..4ade2c2d8f7c8aef7fdb838158fe69688be39b9c 100644
--- a/chrome/test/data/webui/md_history/history_drawer_test.js
+++ b/chrome/test/data/webui/md_history/history_drawer_test.js
@@ -13,17 +13,21 @@ suite('drawer-test', function() {
app.selectedPage_ = 'syncedTabs';
app.hasDrawer_ = true;
return PolymerTest.flushTasks().then(function() {
- var drawer = app.$$('#drawer');
+ var drawer = /** @type {CrLazyRenderElement} */ (app.$.drawer);
var drawerSideBar = app.$$('#drawer-side-bar');
assertTrue(!!drawer);
- assertTrue(!!drawerSideBar);
+ // Drawer side bar doesn't exist until the first time the drawer is
+ // opened.
+ assertFalse(!!drawerSideBar);
var menuButton = app.$.toolbar.$['main-toolbar'].$$('#menuButton');
assertTrue(!!menuButton);
MockInteractions.tap(menuButton);
- assertTrue(drawer.opened);
+ assertTrue(drawer.getIfExists().open);
+ drawerSideBar = app.$$('#drawer-side-bar');
+ assertTrue(!!drawerSideBar);
assertEquals('syncedTabs', drawerSideBar.$.menu.selected);
});
« no previous file with comments | « chrome/browser/resources/md_history/side_bar.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698