OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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('<bookmarks-toast-manager>', function() { |
| 6 var toastManager; |
| 7 var store; |
| 8 |
| 9 setup(function() { |
| 10 toastManager = document.createElement('bookmarks-toast-manager'); |
| 11 replaceBody(toastManager); |
| 12 }); |
| 13 |
| 14 test('simple show/hide', function() { |
| 15 toastManager.show('test', false); |
| 16 var toast = toastManager.$.toast; |
| 17 assertTrue(toast.open); |
| 18 assertEquals('test', toastManager.$.content.textContent); |
| 19 assertTrue(toastManager.$$('paper-button').hidden); |
| 20 |
| 21 toastManager.show('test', true); |
| 22 assertFalse(toastManager.$$('paper-button').hidden); |
| 23 }); |
| 24 }); |
OLD | NEW |