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

Unified Diff: chrome/test/data/webui/md_history/history_synced_tabs_test.js

Issue 2219753002: MD History: Fix crash when opening Synced Tab links with touch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename closure type Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/md_history/synced_device_card.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/md_history/history_synced_tabs_test.js
diff --git a/chrome/test/data/webui/md_history/history_synced_tabs_test.js b/chrome/test/data/webui/md_history/history_synced_tabs_test.js
index f4545fa1d19bac0c2003770853637a693f67a1b8..748eb418537c11d4e92a0d5c83463b3be3b92603 100644
--- a/chrome/test/data/webui/md_history/history_synced_tabs_test.js
+++ b/chrome/test/data/webui/md_history/history_synced_tabs_test.js
@@ -197,13 +197,17 @@ cr.define('md_history.history_synced_tabs_test', function() {
assertEquals('Chromebook', args[0], 'sessionTag is correct');
assertEquals('123', args[1], 'windowId is correct');
assertEquals('456', args[2], 'tabId is correct');
+ assertFalse(args[4], 'altKey is defined');
+ assertFalse(args[5], 'ctrlKey is defined');
+ assertFalse(args[6], 'metaKey is defined');
+ assertFalse(args[7], 'shiftKey is defined');
done();
});
flush().then(function() {
var cards = getCards();
var anchor = cards[0].root.querySelector('a');
- MockInteractions.tap(anchor);
+ MockInteractions.tap(anchor, {emulateTouch: true});
});
});
« no previous file with comments | « chrome/browser/resources/md_history/synced_device_card.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698