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

Unified Diff: LayoutTests/inspector/editor/editor-test.js

Issue 475393002: DevTools: [CodeMirror] roll codemirror to v4.4.1 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix creation of editor instance for test Created 6 years, 4 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 | Source/devtools/front_end/cm/codemirror.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/editor/editor-test.js
diff --git a/LayoutTests/inspector/editor/editor-test.js b/LayoutTests/inspector/editor/editor-test.js
index 326ac2da05325e3f4514af997851542e1567a411..d6471fb72c4957d3724e06d4ae9fe2bffe047e9e 100644
--- a/LayoutTests/inspector/editor/editor-test.js
+++ b/LayoutTests/inspector/editor/editor-test.js
@@ -5,8 +5,8 @@ InspectorTest.createTestEditor = function(clientHeight, textEditorDelegate)
{
runtime.loadModule("source_frame");
var textEditor = new WebInspector.CodeMirrorTextEditor("", textEditorDelegate || new WebInspector.TextEditorDelegate());
- if (clientHeight)
- textEditor.element.style.height = clientHeight + "px";
+ clientHeight = clientHeight || 100;
+ textEditor.element.style.height = clientHeight + "px";
textEditor.element.style.flex = "none";
textEditor.show(WebInspector.inspectorView.element);
return textEditor;
« no previous file with comments | « no previous file | Source/devtools/front_end/cm/codemirror.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698