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

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

Issue 2331053002: DevTools: Implement the console prompt with CodeMirror (Closed)
Patch Set: Fix browser tests 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-auto-completion.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b6c59f2d726633c7726b8575a97f70a2498b7584..020d0f827a08dc64e96c11a72b090b53161ee00f 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());
});
« no previous file with comments | « no previous file | 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