| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 InspectorTest.runTestFunctionAndWaitUntilPausedPromise = function() | 97 InspectorTest.runTestFunctionAndWaitUntilPausedPromise = function() |
| 98 { | 98 { |
| 99 var cb; | 99 var cb; |
| 100 var p = new Promise(fullfill => cb = fullfill); | 100 var p = new Promise(fullfill => cb = fullfill); |
| 101 InspectorTest.runTestFunctionAndWaitUntilPaused(cb); | 101 InspectorTest.runTestFunctionAndWaitUntilPaused(cb); |
| 102 return p; | 102 return p; |
| 103 } | 103 } |
| 104 | 104 |
| 105 InspectorTest.runAsyncCallStacksTest = function(totalDebuggerStatements, maxAsyn
cCallStackDepth) | 105 InspectorTest.runAsyncCallStacksTest = function(totalDebuggerStatements, maxAsyn
cCallStackDepth) |
| 106 { | 106 { |
| 107 var defaultMaxAsyncCallStackDepth = 8; | 107 var defaultMaxAsyncCallStackDepth = 32; |
| 108 | 108 |
| 109 InspectorTest.setQuiet(true); | 109 InspectorTest.setQuiet(true); |
| 110 InspectorTest.startDebuggerTest(step1); | 110 InspectorTest.startDebuggerTest(step1); |
| 111 | 111 |
| 112 function step1() | 112 function step1() |
| 113 { | 113 { |
| 114 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDept
h || defaultMaxAsyncCallStackDepth, step2); | 114 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDept
h || defaultMaxAsyncCallStackDepth, step2); |
| 115 } | 115 } |
| 116 | 116 |
| 117 function step2() | 117 function step2() |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 var bookmark = bookmarks[index]; | 725 var bookmark = bookmarks[index]; |
| 726 if (bookmark) { | 726 if (bookmark) { |
| 727 bookmark[Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymb
olForTest].click(); | 727 bookmark[Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymb
olForTest].click(); |
| 728 } else { | 728 } else { |
| 729 InspectorTest.addResult(`Could not click on Javascript breakpoint - line
Number: ${lineNumber}, index: ${index}`); | 729 InspectorTest.addResult(`Could not click on Javascript breakpoint - line
Number: ${lineNumber}, index: ${index}`); |
| 730 next(); | 730 next(); |
| 731 } | 731 } |
| 732 } | 732 } |
| 733 | 733 |
| 734 }; | 734 }; |
| OLD | NEW |