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

Unified Diff: chrome/browser/ui/webui/options/options_browsertest.js

Issue 2104103002: Convert Event#keyIdentifier (deprecated) to Event#key (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch file manager test Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/options_browsertest.js
diff --git a/chrome/browser/ui/webui/options/options_browsertest.js b/chrome/browser/ui/webui/options/options_browsertest.js
index ec1e8bc62f87e1f76071888eb252026b9e5a2cc7..c80a4efced864f296f90421df4f84e700a361dcf 100644
--- a/chrome/browser/ui/webui/options/options_browsertest.js
+++ b/chrome/browser/ui/webui/options/options_browsertest.js
@@ -321,7 +321,7 @@ TEST_F('OptionsWebUITest', 'EnterPreventsDefault', function() {
var event = new KeyboardEvent('keydown', {
'bubbles': true,
'cancelable': true,
- 'keyIdentifier': 'Enter'
+ 'key': 'Enter'
});
assertFalse(event.defaultPrevented);
page.pageDiv.dispatchEvent(event);

Powered by Google App Engine
This is Rietveld 408576698