| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 suite('history-toolbar', function() { | 5 suite('history-toolbar', function() { |
| 6 var app; | 6 var app; |
| 7 var element; | 7 var element; |
| 8 var toolbar; | 8 var toolbar; |
| 9 var TEST_HISTORY_RESULTS; | 9 var TEST_HISTORY_RESULTS; |
| 10 | 10 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 assertFalse(notice.hidden); | 94 assertFalse(notice.hidden); |
| 95 MockInteractions.pressAndReleaseKeyOn(notice, /* esc */ 27, '', 'Escape'); | 95 MockInteractions.pressAndReleaseKeyOn(notice, /* esc */ 27, '', 'Escape'); |
| 96 assertTrue(notice.hidden); | 96 assertTrue(notice.hidden); |
| 97 | 97 |
| 98 // Hiding the button hides the notice. | 98 // Hiding the button hides the notice. |
| 99 MockInteractions.tap(button); | 99 MockInteractions.tap(button); |
| 100 toolbar.showSyncNotice = false; | 100 toolbar.showSyncNotice = false; |
| 101 assertTrue(notice.hidden); | 101 assertTrue(notice.hidden); |
| 102 }); | 102 }); |
| 103 | 103 |
| 104 test('menu promo hides when drawer is opened', function() { |
| 105 app.showMenuPromo_ = true; |
| 106 app.hasDrawer_ = true; |
| 107 Polymer.dom.flush(); |
| 108 MockInteractions.tap(toolbar.$['main-toolbar'].$$('#menuButton')); |
| 109 assertFalse(app.showMenuPromo_); |
| 110 }); |
| 111 |
| 104 teardown(function() { | 112 teardown(function() { |
| 105 registerMessageCallback('queryHistory', this, function() {}); | 113 registerMessageCallback('queryHistory', this, function() {}); |
| 106 }); | 114 }); |
| 107 }); | 115 }); |
| OLD | NEW |