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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html

Issue 2045603002: Handle the "key" field as opposed to keyIdentifier field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chromeos Created 4 years, 6 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: third_party/WebKit/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html b/third_party/WebKit/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html
index c36d5d43ffce9db497b1ca2cba24da5131708bba..a3ea70a6d80d72f4ba002226df9aff8021e76ee7 100644
--- a/third_party/WebKit/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html
+++ b/third_party/WebKit/LayoutTests/fast/events/dispatch-synthetic-keyboardevent-no-action.html
@@ -12,7 +12,7 @@ description("Tests to ensure that default action does not occur for untrusted ev
var node = document.getElementById('radio1');
node.getBoundingClientRect();
-var event = new KeyboardEvent('keydown', { keyIdentifier: 'Down' } );
+var event = new KeyboardEvent('keydown', { key: 'ArrowDown' } );
node.dispatchEvent(event);
shouldBeTrue("document.getElementById('radio1').checked");
shouldBeFalse("document.getElementById('radio2').checked");

Powered by Google App Engine
This is Rietveld 408576698