| 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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 | 523 |
| 524 InspectorTest.checkRawLocation = function(script, lineNumber, columnNumber, loca
tion) | 524 InspectorTest.checkRawLocation = function(script, lineNumber, columnNumber, loca
tion) |
| 525 { | 525 { |
| 526 InspectorTest.assertEquals(script.scriptId, location.scriptId, "Incorrect sc
riptId"); | 526 InspectorTest.assertEquals(script.scriptId, location.scriptId, "Incorrect sc
riptId"); |
| 527 InspectorTest.assertEquals(lineNumber, location.lineNumber, "Incorrect lineN
umber"); | 527 InspectorTest.assertEquals(lineNumber, location.lineNumber, "Incorrect lineN
umber"); |
| 528 InspectorTest.assertEquals(columnNumber, location.columnNumber, "Incorrect c
olumnNumber"); | 528 InspectorTest.assertEquals(columnNumber, location.columnNumber, "Incorrect c
olumnNumber"); |
| 529 }; | 529 }; |
| 530 | 530 |
| 531 InspectorTest.checkUILocation = function(uiSourceCode, lineNumber, columnNumber,
location) | 531 InspectorTest.checkUILocation = function(uiSourceCode, lineNumber, columnNumber,
location) |
| 532 { | 532 { |
| 533 InspectorTest.assertEquals(uiSourceCode, location.uiSourceCode, "Incorrect u
iSourceCode, expected '" + (uiSourceCode ? uiSourceCode.uri() : null) + "'," + | 533 InspectorTest.assertEquals(uiSourceCode, location.uiSourceCode, "Incorrect u
iSourceCode, expected '" + (uiSourceCode ? uiSourceCode.url() : null) + "'," + |
| 534 " but got '"
+ (location.uiSourceCode ? location.uiSourceCode.uri() : null) + "'"); | 534 " but got '"
+ (location.uiSourceCode ? location.uiSourceCode.url() : null) + "'"); |
| 535 InspectorTest.assertEquals(lineNumber, location.lineNumber, "Incorrect lineN
umber, expected '" + lineNumber + "', but got '" + location.lineNumber + "'"); | 535 InspectorTest.assertEquals(lineNumber, location.lineNumber, "Incorrect lineN
umber, expected '" + lineNumber + "', but got '" + location.lineNumber + "'"); |
| 536 InspectorTest.assertEquals(columnNumber, location.columnNumber, "Incorrect c
olumnNumber, expected '" + columnNumber + "', but got '" + location.columnNumber
+ "'"); | 536 InspectorTest.assertEquals(columnNumber, location.columnNumber, "Incorrect c
olumnNumber, expected '" + columnNumber + "', but got '" + location.columnNumber
+ "'"); |
| 537 }; | 537 }; |
| 538 | 538 |
| 539 InspectorTest.scriptFormatter = function() | 539 InspectorTest.scriptFormatter = function() |
| 540 { | 540 { |
| 541 return self.runtime.instancesPromise(WebInspector.SourcesView.EditorAction).
then(function(editorActions) { | 541 return self.runtime.instancesPromise(WebInspector.SourcesView.EditorAction).
then(function(editorActions) { |
| 542 for (var i = 0; i < editorActions.length; ++i) { | 542 for (var i = 0; i < editorActions.length; ++i) { |
| 543 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAc
tion) | 543 if (editorActions[i] instanceof WebInspector.ScriptFormatterEditorAc
tion) |
| 544 return editorActions[i]; | 544 return editorActions[i]; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 563 } | 563 } |
| 564 | 564 |
| 565 InspectorTest.selectThread = function(target) | 565 InspectorTest.selectThread = function(target) |
| 566 { | 566 { |
| 567 var threadsPane = WebInspector.panels.sources.sidebarPanes.threads; | 567 var threadsPane = WebInspector.panels.sources.sidebarPanes.threads; |
| 568 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); | 568 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg
erModel.fromTarget(target)); |
| 569 threadsPane._onListItemClick(listItem); | 569 threadsPane._onListItemClick(listItem); |
| 570 } | 570 } |
| 571 | 571 |
| 572 }; | 572 }; |
| OLD | NEW |