| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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-command-manager>', function() { | 5 suite('<bookmarks-command-manager>', function() { |
| 6 var commandManager; | 6 var commandManager; |
| 7 var store; | 7 var store; |
| 8 var lastCommand; | 8 var lastCommand; |
| 9 var lastCommandIds; | 9 var lastCommandIds; |
| 10 | 10 |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 | 375 |
| 376 assertOpenedTabs(['http://111/', 'http://12/']); | 376 assertOpenedTabs(['http://111/', 'http://12/']); |
| 377 }); | 377 }); |
| 378 | 378 |
| 379 test('control-double click opens full selection', function() { | 379 test('control-double click opens full selection', function() { |
| 380 customClick(items[0]); | 380 customClick(items[0]); |
| 381 simulateDoubleClick(items[2], {ctrlKey: true}); | 381 simulateDoubleClick(items[2], {ctrlKey: true}); |
| 382 | 382 |
| 383 assertOpenedTabs(['http://111/', 'http://13/']); | 383 assertOpenedTabs(['http://111/', 'http://13/']); |
| 384 }); | 384 }); |
| 385 |
| 386 test('meta-down triggers Open on Mac', function() { |
| 387 if (!cr.isMac) |
| 388 return; |
| 389 |
| 390 customClick(items[0]); |
| 391 MockInteractions.pressAndReleaseKeyOn(items[0], 0, 'meta', 'ArrowDown'); |
| 392 assertEquals('11', store.data.selectedFolder); |
| 393 }); |
| 385 }); | 394 }); |
| OLD | NEW |