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

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: Add test 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..db3da4a7d31b4c0e53de09f16610e2598074187f
--- /dev/null
+++ b/chrome/test/data/webui/md_history/history_drawer_test.js
@@ -0,0 +1,39 @@
+// 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;
+ var drawer;
+ var drawerSideBar;
calamity 2016/07/26 05:05:18 Last 2 unused.
tsergeant 2016/07/26 05:59:03 Done.
+
+ 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);
+ assertNotEquals(null, drawerSideBar);
+ MockInteractions.tap(menuButton);
+ assertTrue(drawer.opened);
+
+ assertEquals('syncedTabs', drawerSideBar.$.menu.selected);
+ });
+ });
+ });
+ }
+
+ return {
+ registerTests: registerTests
+ };
+});

Powered by Google App Engine
This is Rietveld 408576698