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

Side by Side Diff: chrome/test/data/webui/md_history/history_toolbar_test.js

Issue 2720903003: MD History: Fix menu promo not hiding when menu button is clicked (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « chrome/browser/resources/md_history/app.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/app.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698