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

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

Issue 2033403005: Eradicate keyIndentifier from devtools/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call KeyCodeToKeyIdentifier for unhandle key events 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/http/tests/inspector/console-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
index ec05a3ca5500978c1d2301bf4a222a464f34ac35..a48ff3434e7078c2312df665b4dba50fbcb3018c 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
@@ -23,8 +23,12 @@ InspectorTest.evaluateInConsole = function(code, callback, dontForceMainContext)
var consoleView = WebInspector.ConsoleView.instance();
consoleView.visible = true;
consoleView._prompt.setText(code);
- var event = document.createEvent("KeyboardEvent");
- event.initKeyboardEvent("keydown", true, true, null, "Enter", "");
+ var event = new KeyboardEvent("keydown", {
+ key: "Enter",
+ keyIdentifier: "Enter",
+ bubbles: true,
+ cancelable: true
+ });
consoleView._prompt.proxyElementForTests().dispatchEvent(event);
InspectorTest.addConsoleViewSniffer(function(commandResult) {
callback(commandResult.toMessageElement().deepTextContent());
« no previous file with comments | « chrome/chrome_debugger.gypi ('k') | third_party/WebKit/LayoutTests/inspector/console/console-auto-completion.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698