| 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 runtime.loadModule("source_frame"); | 6 loadScript("source_frame/SourceFrame.js"); |
| 7 var textEditor = new WebInspector.CodeMirrorTextEditor("", textEditorDelegat
e || new WebInspector.TextEditorDelegate()); | 7 var textEditor = new WebInspector.CodeMirrorTextEditor("", textEditorDelegat
e || new WebInspector.TextEditorDelegate()); |
| 8 if (clientHeight) | 8 if (clientHeight) |
| 9 textEditor.element.style.height = clientHeight + "px"; | 9 textEditor.element.style.height = clientHeight + "px"; |
| 10 textEditor.element.style.flex = "none"; | 10 textEditor.element.style.flex = "none"; |
| 11 textEditor.show(WebInspector.inspectorView.element); | 11 textEditor.show(WebInspector.inspectorView.element); |
| 12 return textEditor; | 12 return textEditor; |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 function textWithSelection(text, selections) | 15 function textWithSelection(text, selections) |
| 16 { | 16 { |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 167 |
| 168 function callbackWrapper() | 168 function callbackWrapper() |
| 169 { | 169 { |
| 170 editor._codeMirror.off("inputRead", callbackWrapper); | 170 editor._codeMirror.off("inputRead", callbackWrapper); |
| 171 callback(); | 171 callback(); |
| 172 } | 172 } |
| 173 editor._codeMirror.on("inputRead", callbackWrapper); | 173 editor._codeMirror.on("inputRead", callbackWrapper); |
| 174 } | 174 } |
| 175 | 175 |
| 176 } | 176 } |
| OLD | NEW |