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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/editor/editor-test.js

Issue 2238883004: DevTools: Split off SourcesTextEditor from CodeMirrorTextEditor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge and move decorations to CMTE Created 4 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 unified diff | Download patch
OLDNEW
1 function initialize_EditorTests() 1 function initialize_EditorTests()
2 { 2 {
3 3
4 InspectorTest.createTestEditor = function(clientHeight, textEditorDelegate) 4 InspectorTest.createTestEditor = function(clientHeight, textEditorDelegate)
5 { 5 {
6 var textEditor = new WebInspector.CodeMirrorTextEditor("", textEditorDelegat e || new WebInspector.TextEditorDelegate()); 6 var textEditor = new WebInspector.SourcesTextEditor(textEditorDelegate || ne w WebInspector.SourcesTextEditorDelegate());
lushnikov 2016/08/22 19:47:04 hackish, but works
7 clientHeight = clientHeight || 100; 7 clientHeight = clientHeight || 100;
8 textEditor.element.style.height = clientHeight + "px"; 8 textEditor.element.style.height = clientHeight + "px";
9 textEditor.element.style.flex = "none"; 9 textEditor.element.style.flex = "none";
10 textEditor.show(WebInspector.inspectorView.element); 10 textEditor.show(WebInspector.inspectorView.element);
11 return textEditor; 11 return textEditor;
12 }; 12 };
13 13
14 function textWithSelection(text, selections) 14 function textWithSelection(text, selections)
15 { 15 {
16 if (!selections.length) 16 if (!selections.length)
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 var keyName = sortedKeys[i]; 200 var keyName = sortedKeys[i];
201 if (!keyName.length) 201 if (!keyName.length)
202 keyName = "<Empty string>"; 202 keyName = "<Empty string>";
203 else 203 else
204 keyName = "'" + keyName + "'"; 204 keyName = "'" + keyName + "'";
205 InspectorTest.addResult(keyName + ": " + listHashMap[sortedKeys[i]]); 205 InspectorTest.addResult(keyName + ": " + listHashMap[sortedKeys[i]]);
206 } 206 }
207 } 207 }
208 208
209 } 209 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698