| 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('<bookmarks-list>', function() { | 5 suite('<bookmarks-list>', function() { |
| 6 var list; | 6 var list; |
| 7 var store; | 7 var store; |
| 8 | 8 |
| 9 setup(function() { | 9 setup(function() { |
| 10 store = new bookmarks.TestStore({ | 10 store = new bookmarks.TestStore({ |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 assertDeepEquals(['1'], store.lastAction.items); | 73 assertDeepEquals(['1'], store.lastAction.items); |
| 74 | 74 |
| 75 // Anchor item doesn't exist: | 75 // Anchor item doesn't exist: |
| 76 store.data.selection.anchor = '42'; | 76 store.data.selection.anchor = '42'; |
| 77 | 77 |
| 78 customClick(items[1], {shiftKey: true}); | 78 customClick(items[1], {shiftKey: true}); |
| 79 | 79 |
| 80 assertEquals('3', store.lastAction.anchor); | 80 assertEquals('3', store.lastAction.anchor); |
| 81 assertDeepEquals(['3'], store.lastAction.items); | 81 assertDeepEquals(['3'], store.lastAction.items); |
| 82 }); | 82 }); |
| 83 |
| 84 test('deselects items on click outside of card', function() { |
| 85 customClick(list); |
| 86 assertEquals('deselect-items', store.lastAction.name); |
| 87 }); |
| 83 }); | 88 }); |
| OLD | NEW |