| OLD | NEW |
| 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(textEditorDelegate ||
new WebInspector.TextEditorDelegate()); | 6 var textEditor = new WebInspector.SourcesTextEditor(textEditorDelegate || ne
w WebInspector.SourcesTextEditorDelegate()); |
| 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 Loading... |
| 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 } |
| OLD | NEW |