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

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

Issue 2331053002: DevTools: Implement the console prompt with CodeMirror (Closed)
Patch Set: Merge with PageUp fix Created 4 years, 3 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 bee4cbc2c23be70b9b93ccb5c55095738d7a10e1..3fdd79470568923656bb6768b71e2915b9d397d9 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
@@ -21,14 +21,7 @@ InspectorTest.evaluateInConsole = function(code, callback, dontForceMainContext)
callback = InspectorTest.safeWrap(callback);
var consoleView = WebInspector.ConsoleView.instance();
- consoleView.visible = true;
- consoleView._prompt.setText(code);
- var event = new KeyboardEvent("keydown", {
- key: "Enter",
- bubbles: true,
- cancelable: true
- });
- consoleView._prompt.proxyElementForTests().dispatchEvent(event);
+ consoleView._appendCommand(code, true);
InspectorTest.addConsoleViewSniffer(function(commandResult) {
callback(commandResult.toMessageElement().deepTextContent());
});

Powered by Google App Engine
This is Rietveld 408576698