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

Side by Side Diff: chrome/test/data/webui/md_bookmarks/toast_manager_test.js

Issue 2898303004: [MD Bookmarks] Add toasts. (Closed)
Patch Set: address comments Created 3 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 unified diff | Download patch
OLDNEW
(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() {
dpapad 2017/06/01 17:35:44 The test claims to test show/hide, but only toastM
calamity 2017/06/02 05:34:22 Done.
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698