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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js

Issue 2120153003: Remove keyIdentifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_key_identifier_3a
Patch Set: Rebase 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: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
index f0dc4d7e5977c7ca6667f80f1a6eea81a1b85ded..56701bf8671d678b984c880798e8e4034f49dbb9 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
@@ -523,16 +523,7 @@ InspectorTest.deprecatedRunAfterPendingDispatches = function(callback)
InspectorTest.createKeyEvent = function(key, ctrlKey, altKey, shiftKey, metaKey)
{
- var keyIdentifier = key;
- if (key === "Tab")
- keyIdentifier = "U+0009";
- else if (key == "Escape")
- keyIdentifier = "U+001B";
- else if (key == "ArrowUp")
- keyIdentifier = "Up";
- else if (key == "ArrowDown")
- keyIdentifier = "Down";
- return new KeyboardEvent("keydown", {key: key, keyIdentifier: keyIdentifier, bubbles: true, cancelable: true, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey, metaKey: metaKey});
+ return new KeyboardEvent("keydown", {key: key, bubbles: true, cancelable: true, ctrlKey: ctrlKey, altKey: altKey, shiftKey: shiftKey, metaKey: metaKey});
}
InspectorTest.runTestSuite = function(testSuite)

Powered by Google App Engine
This is Rietveld 408576698