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.resetNetworkProject = function(networkProject) { |
| 11 for (var project of networkProject._workspaceProjects.values()) |
| 12 project.removeProject(); |
| 13 networkProject._workspaceProjects.clear(); |
| 14 } |
| 15 |
10 InspectorTest.startDebuggerTest = function(callback, quiet) | 16 InspectorTest.startDebuggerTest = function(callback, quiet) |
11 { | 17 { |
12 console.assert(InspectorTest.debuggerModel.debuggerEnabled(), "Debugger has
to be enabled"); | 18 console.assert(InspectorTest.debuggerModel.debuggerEnabled(), "Debugger has
to be enabled"); |
13 if (quiet !== undefined) | 19 if (quiet !== undefined) |
14 InspectorTest._quiet = quiet; | 20 InspectorTest._quiet = quiet; |
15 UI.viewManager.showView("sources"); | 21 UI.viewManager.showView("sources"); |
16 | 22 |
17 InspectorTest.addSniffer(SDK.DebuggerModel.prototype, "_pausedScript", Inspe
ctorTest._pausedScript, true); | 23 InspectorTest.addSniffer(SDK.DebuggerModel.prototype, "_pausedScript", Inspe
ctorTest._pausedScript, true); |
18 InspectorTest.addSniffer(SDK.DebuggerModel.prototype, "_resumedScript", Insp
ectorTest._resumedScript, true); | 24 InspectorTest.addSniffer(SDK.DebuggerModel.prototype, "_resumedScript", Insp
ectorTest._resumedScript, true); |
19 InspectorTest.safeWrap(callback)(); | 25 InspectorTest.safeWrap(callback)(); |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 var bookmark = bookmarks[index]; | 735 var bookmark = bookmarks[index]; |
730 if (bookmark) { | 736 if (bookmark) { |
731 bookmark[Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymb
olForTest].click(); | 737 bookmark[Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymb
olForTest].click(); |
732 } else { | 738 } else { |
733 InspectorTest.addResult(`Could not click on Javascript breakpoint - line
Number: ${lineNumber}, index: ${index}`); | 739 InspectorTest.addResult(`Could not click on Javascript breakpoint - line
Number: ${lineNumber}, index: ${index}`); |
734 next(); | 740 next(); |
735 } | 741 } |
736 } | 742 } |
737 | 743 |
738 }; | 744 }; |
OLD | NEW |