OLD | NEW |
1 var initialize_ConsoleTest = function() { | 1 var initialize_ConsoleTest = function() { |
2 | 2 |
| 3 InspectorTest.preloadModule("source_frame"); |
3 InspectorTest.preloadPanel("console"); | 4 InspectorTest.preloadPanel("console"); |
4 | 5 |
5 InspectorTest.evaluateInConsole = function(code, callback) | 6 InspectorTest.evaluateInConsole = function(code, callback) |
6 { | 7 { |
7 callback = InspectorTest.safeWrap(callback); | 8 callback = InspectorTest.safeWrap(callback); |
8 | 9 |
9 var consoleView = WebInspector.ConsolePanel._view(); | 10 var consoleView = WebInspector.ConsolePanel._view(); |
10 consoleView.visible = true; | 11 consoleView.visible = true; |
11 consoleView._prompt.setText(code); | 12 consoleView._prompt.setText(code); |
12 var event = document.createEvent("KeyboardEvent"); | 13 var event = document.createEvent("KeyboardEvent"); |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 } | 304 } |
304 if (!option) { | 305 if (!option) { |
305 InspectorTest.addResult("FAILED: context with prefix: " + namePrefix +
" not found in the context list"); | 306 InspectorTest.addResult("FAILED: context with prefix: " + namePrefix +
" not found in the context list"); |
306 return; | 307 return; |
307 } | 308 } |
308 option.selected = true; | 309 option.selected = true; |
309 WebInspector.ConsolePanel._view()._executionContextChanged(); | 310 WebInspector.ConsolePanel._view()._executionContextChanged(); |
310 } | 311 } |
311 | 312 |
312 } | 313 } |
OLD | NEW |