| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 133 |
| 134 function doTestPromiseResolveAndReject() | 134 function doTestPromiseResolveAndReject() |
| 135 { | 135 { |
| 136 Promise.resolve(1).then(thenCallback, errorCallback); | 136 Promise.resolve(1).then(thenCallback, errorCallback); |
| 137 Promise.reject(Error("2")).then(thenCallback, errorCallback); | 137 Promise.reject(Error("2")).then(thenCallback, errorCallback); |
| 138 } | 138 } |
| 139 | 139 |
| 140 var test = function() | 140 var test = function() |
| 141 { | 141 { |
| 142 var totalDebuggerStatements = 14; | 142 var totalDebuggerStatements = 14; |
| 143 var maxAsyncCallStackDepth = 4; | 143 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements); |
| 144 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallSt
ackDepth); | |
| 145 } | 144 } |
| 146 | 145 |
| 147 </script> | 146 </script> |
| 148 </head> | 147 </head> |
| 149 | 148 |
| 150 <body onload="runTest()"> | 149 <body onload="runTest()"> |
| 151 <p> | 150 <p> |
| 152 Tests asynchronous call stacks for Promises. | 151 Tests asynchronous call stacks for Promises. |
| 153 </p> | 152 </p> |
| 154 | 153 |
| 155 </body> | 154 </body> |
| 156 </html> | 155 </html> |
| OLD | NEW |