| OLD | NEW |
| 1 function scheduleTestFunction() | 1 function scheduleTestFunction() |
| 2 { | 2 { |
| 3 setTimeout(testFunction, 0); | 3 setTimeout(testFunction, 0); |
| 4 } | 4 } |
| 5 | 5 |
| 6 var initialize_DebuggerTest = function() { | 6 var initialize_DebuggerTest = function() { |
| 7 | 7 |
| 8 InspectorTest.preloadPanel("sources"); | 8 InspectorTest.preloadPanel("sources"); |
| 9 | 9 |
| 10 InspectorTest.startDebuggerTest = function(callback, quiet) | 10 InspectorTest.startDebuggerTest = function(callback, quiet) |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 }; | 356 }; |
| 357 | 357 |
| 358 InspectorTest.showUISourceCode = function(uiSourceCode, callback) | 358 InspectorTest.showUISourceCode = function(uiSourceCode, callback) |
| 359 { | 359 { |
| 360 var panel = WebInspector.panels.sources; | 360 var panel = WebInspector.panels.sources; |
| 361 panel.showUISourceCode(uiSourceCode); | 361 panel.showUISourceCode(uiSourceCode); |
| 362 var sourceFrame = panel.visibleView; | 362 var sourceFrame = panel.visibleView; |
| 363 if (sourceFrame.loaded) | 363 if (sourceFrame.loaded) |
| 364 callback(sourceFrame); | 364 callback(sourceFrame); |
| 365 else | 365 else |
| 366 InspectorTest.addSniffer(sourceFrame, "onTextEditorContentLoaded", callb
ack && callback.bind(null, sourceFrame)); | 366 InspectorTest.addSniffer(sourceFrame, "onTextEditorContentSet", callback
&& callback.bind(null, sourceFrame)); |
| 367 }; | 367 }; |
| 368 | 368 |
| 369 InspectorTest.showScriptSource = function(scriptName, callback) | 369 InspectorTest.showScriptSource = function(scriptName, callback) |
| 370 { | 370 { |
| 371 InspectorTest.waitForScriptSource(scriptName, onScriptSource); | 371 InspectorTest.waitForScriptSource(scriptName, onScriptSource); |
| 372 | 372 |
| 373 function onScriptSource(uiSourceCode) | 373 function onScriptSource(uiSourceCode) |
| 374 { | 374 { |
| 375 InspectorTest.showUISourceCode(uiSourceCode, callback); | 375 InspectorTest.showUISourceCode(uiSourceCode, callback); |
| 376 } | 376 } |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); | 574 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); |
| 575 threadsPane._onListItemClick(listItem); | 575 threadsPane._onListItemClick(listItem); |
| 576 } | 576 } |
| 577 | 577 |
| 578 InspectorTest.evaluateOnCurrentCallFrame = function(code) | 578 InspectorTest.evaluateOnCurrentCallFrame = function(code) |
| 579 { | 579 { |
| 580 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal
lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ))
); | 580 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal
lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ))
); |
| 581 } | 581 } |
| 582 | 582 |
| 583 }; | 583 }; |
| OLD | NEW |