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

Side by Side Diff: chrome/test/data/webui/md_bookmarks/command_manager_test.js

Issue 2964883002: MD Bookmarks: Fix Meta-down not triggering the 'Open' command on Mac (Closed)
Patch Set: Created 3 years, 5 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_bookmarks/list.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 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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_bookmarks/list.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698