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

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

Issue 2165903003: MD History: Show sidebar next to content on wide screens (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@history_fix_footer_link
Patch Set: calamity@ review Created 4 years, 5 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..516b0dd59e510dbb7b3dbd943fded0b61b1d44f5
--- /dev/null
+++ b/chrome/test/data/webui/md_history/history_drawer_test.js
@@ -0,0 +1,37 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+cr.define('md_history.history_drawer_test', function () {
+ function registerTests() {
+ suite('drawer-test', function() {
+ var app;
+ var menuButton;
+
+ suiteSetup(function() {
+ app = $('history-app');
+ menuButton = app.$.toolbar.$['main-toolbar'].$.menuButton;
+ });
+
+ test('drawer has correct selection', function() {
+ app.selectedPage_ = 'syncedTabs';
+ app.hasDrawer_ = true;
+ return flush().then(function() {
+ var drawer = app.$$('#drawer');
+ var drawerSideBar = app.$$('#drawer-side-bar');
+
+ assertNotEquals(null, drawer);
dpapad 2016/07/28 23:17:12 Nit (optional): assertTrue(!!drawer);
tsergeant 2016/07/29 01:39:52 Done.
+ assertNotEquals(null, drawerSideBar);
+ MockInteractions.tap(menuButton);
+ assertTrue(drawer.opened);
+
+ assertEquals('syncedTabs', drawerSideBar.$.menu.selected);
+ });
+ });
+ });
+ }
+
+ return {
+ registerTests: registerTests
+ };
+});
« no previous file with comments | « chrome/browser/resources/md_history/side_bar.js ('k') | chrome/test/data/webui/md_history/history_grouped_list_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698