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

Unified Diff: third_party/WebKit/Source/devtools/front_end/Tests.js

Issue 2361273002: DevTools: Move "enter" logic from ConsoleView to ConsolePrompt (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
Index: third_party/WebKit/Source/devtools/front_end/Tests.js
diff --git a/third_party/WebKit/Source/devtools/front_end/Tests.js b/third_party/WebKit/Source/devtools/front_end/Tests.js
index c92b7e386119098dd87c10c2525e617c00975e4a..0089a703d0c7c5f4630543b97f59ef58e2a50b63 100644
--- a/third_party/WebKit/Source/devtools/front_end/Tests.js
+++ b/third_party/WebKit/Source/devtools/front_end/Tests.js
@@ -1109,8 +1109,7 @@ TestSuite.prototype.evaluateInConsole_ = function(code, callback)
{
WebInspector.context.removeFlavorChangeListener(WebInspector.ExecutionContext, showConsoleAndEvaluate, this);
var consoleView = WebInspector.ConsoleView.instance();
- consoleView._prompt.setText(code);
- consoleView._prompt.element.dispatchEvent(TestSuite.createKeyEvent("Enter"));
+ consoleView._prompt._appendCommand(code);
this.addSniffer(WebInspector.ConsoleView.prototype, "_consoleMessageAddedForTest",
function(viewMessage) {

Powered by Google App Engine
This is Rietveld 408576698