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

Unified Diff: chrome/test/data/webui/md_downloads/toolbar_tests.js

Issue 2074483003: MD Downloads: hide ... (more options) menu on resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: michaelpg review Created 4 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_downloads/layout_tests.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_downloads/toolbar_tests.js
diff --git a/chrome/test/data/webui/md_downloads/toolbar_tests.js b/chrome/test/data/webui/md_downloads/toolbar_tests.js
new file mode 100644
index 0000000000000000000000000000000000000000..a051efe3c395976240955f13600f78d66e153413
--- /dev/null
+++ b/chrome/test/data/webui/md_downloads/toolbar_tests.js
@@ -0,0 +1,21 @@
+// 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.
+
+suite('toolbar tests', function() {
+ /** @type {!downloads.Toolbar} */
+ var toolbar;
+
+ setup(function() {
+ toolbar = document.createElement('downloads-toolbar');
+ document.body.appendChild(toolbar);
+ });
+
+ test('resize closes more options menu', function() {
+ MockInteractions.tap(toolbar.$$('paper-icon-button'));
+ assertTrue(toolbar.$.more.opened);
+
+ window.dispatchEvent(new CustomEvent('resize'));
+ assertFalse(toolbar.$.more.opened);
+ });
+});
« no previous file with comments | « chrome/test/data/webui/md_downloads/layout_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698