| 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);
|
| + });
|
| +});
|
|
|