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-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 Loading... |
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 }); |
OLD | NEW |