| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../../../http/tests/inspector/debugger-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function timeoutPromise(value, ms) | 7 function timeoutPromise(value, ms) |
| 8 { | 8 { |
| 9 return new Promise(function promiseCallback(resolve, reject) { | 9 return new Promise(function promiseCallback(resolve, reject) { |
| 10 function resolvePromise() | 10 function resolvePromise() |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 let result = await Promise.reject(new Error("2")) | 126 let result = await Promise.reject(new Error("2")) |
| 127 thenCallback(result); | 127 thenCallback(result); |
| 128 } catch (e) { | 128 } catch (e) { |
| 129 errorCallback(e); | 129 errorCallback(e); |
| 130 } | 130 } |
| 131 } | 131 } |
| 132 | 132 |
| 133 var test = function() | 133 var test = function() |
| 134 { | 134 { |
| 135 var totalDebuggerStatements = 5; | 135 var totalDebuggerStatements = 5; |
| 136 var maxAsyncCallStackDepth = 5; | 136 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements); |
| 137 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallSt
ackDepth); | |
| 138 } | 137 } |
| 139 | 138 |
| 140 </script> | 139 </script> |
| 141 </head> | 140 </head> |
| 142 | 141 |
| 143 <body onload="runTest()"> | 142 <body onload="runTest()"> |
| 144 <p> | 143 <p> |
| 145 Tests asynchronous call stacks for async functions. | 144 Tests asynchronous call stacks for async functions. |
| 146 </p> | 145 </p> |
| 147 | 146 |
| 148 </body> | 147 </body> |
| 149 </html> | 148 </html> |
| OLD | NEW |