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

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

Issue 2800603002: MD WebUI: Pull 'X selected' toolbar overlay from History into shared element (Closed)
Patch Set: dbeam review comments Created 3 years, 8 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
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-list supervised-user', function() { 5 suite('history-list supervised-user', function() {
6 var app; 6 var app;
7 var historyList; 7 var historyList;
8 var toolbar; 8 var toolbar;
9 var TEST_HISTORY_RESULTS; 9 var TEST_HISTORY_RESULTS;
10 10
(...skipping 20 matching lines...) Expand all
31 }); 31 });
32 }); 32 });
33 33
34 test('deletion disabled for supervised user', function() { 34 test('deletion disabled for supervised user', function() {
35 // Make sure that removeVisits is not being called. 35 // Make sure that removeVisits is not being called.
36 registerMessageCallback('removeVisits', this, function (toBeRemoved) { 36 registerMessageCallback('removeVisits', this, function (toBeRemoved) {
37 assertNotReached(); 37 assertNotReached();
38 }); 38 });
39 39
40 historyList.historyData_[0].selected = true; 40 historyList.historyData_[0].selected = true;
41 toolbar.onDeleteTap_(); 41 toolbar.deleteSelectedItems();
42 }); 42 });
43 43
44 test('remove history menu button disabled', function() { 44 test('remove history menu button disabled', function() {
45 var listContainer = app.$['history']; 45 var listContainer = app.$['history'];
46 listContainer.$.sharedMenu.get(); 46 listContainer.$.sharedMenu.get();
47 assertTrue(listContainer.$$('#menuRemoveButton').hidden); 47 assertTrue(listContainer.$$('#menuRemoveButton').hidden);
48 }); 48 });
49 }); 49 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698