| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 suite('toolbar tests', function() { |
| 6 /** @type {!downloads.Toolbar} */ |
| 7 var toolbar; |
| 8 |
| 9 setup(function() { |
| 10 toolbar = document.createElement('downloads-toolbar'); |
| 11 document.body.appendChild(toolbar); |
| 12 }); |
| 13 |
| 14 test('resize closes more options menu', function() { |
| 15 MockInteractions.tap(toolbar.$$('paper-icon-button')); |
| 16 assertTrue(toolbar.$.more.opened); |
| 17 |
| 18 window.dispatchEvent(new CustomEvent('resize')); |
| 19 assertFalse(toolbar.$.more.opened); |
| 20 }); |
| 21 }); |
| OLD | NEW |