| Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-callstack-async-await1.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-callstack-async-await.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-callstack-async-await1.html
|
| similarity index 65%
|
| copy from third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-callstack-async-await.html
|
| copy to third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-callstack-async-await1.html
|
| index dcb1c026c6bf17b26cf98b48cda8047e449b2cd1..c1c4d4a4184211a8d928e60b57d2c62f4117b68e 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-callstack-async-await.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-callstack-async-await1.html
|
| @@ -45,7 +45,7 @@ function testFunction()
|
|
|
| function testFunctionTimeout()
|
| {
|
| - var functions = [doTestPromiseConstructor, doTestSettledPromisesResolved, doTestSettledPromisesRejected, doTestChainedPromises, doTestChainedPromisesJSON, doTestPromiseAll, doTestThrowFromChain, doTestRejectFromChain, doTestPromiseResolve, doTestPromiseReject];
|
| + var functions = [doTestPromiseConstructor, doTestSettledPromisesResolved, doTestSettledPromisesRejected, doTestChainedPromises, doTestChainedPromisesJSON];
|
| for (var i = 0; i < functions.length; ++i)
|
| functions[i]();
|
| }
|
| @@ -122,79 +122,9 @@ async function doTestChainedPromisesJSON()
|
| }
|
| }
|
|
|
| -async function doTestPromiseAll()
|
| -{
|
| - try {
|
| - let all = await Promise.all([11, 22, 33, 44, 55].map(timeoutPromise));
|
| - thenCallback(all);
|
| - } catch (e) {
|
| - errorCallback(e);
|
| - }
|
| -}
|
| -
|
| -async function throwFromChain()
|
| -{
|
| - await timeoutPromise(1);
|
| - await timeoutPromise(2);
|
| - await settledPromise(3);
|
| - throw Error("thrown from 4");
|
| - await timeoutPromise(5);
|
| - debugger;
|
| -}
|
| -
|
| -async function doTestThrowFromChain()
|
| -{
|
| - try {
|
| - let result = await throwFromChain();
|
| - thencallback(result);
|
| - } catch (e) {
|
| - errorCallback(e);
|
| - }
|
| -}
|
| -
|
| -async function rejectFromChain()
|
| -{
|
| - await timeoutPromise(1);
|
| - await timeoutPromise(2);
|
| - await timeoutPromise(3);
|
| - await timeoutPromise(new Error(4));
|
| - throw new Error("thrown from rejectFromChain");
|
| - debugger;
|
| -}
|
| -
|
| -async function doTestRejectFromChain()
|
| -{
|
| - try {
|
| - let result = await rejectFromChain();
|
| - thenCallback(result);
|
| - } catch (e) {
|
| - errorCallback(e);
|
| - }
|
| -}
|
| -
|
| -async function doTestPromiseResolve()
|
| -{
|
| - try {
|
| - let result = await Promise.resolve(1);
|
| - thenCallback(result);
|
| - } catch (e) {
|
| - errorCallback(e);
|
| - }
|
| -}
|
| -
|
| -async function doTestPromiseReject()
|
| -{
|
| - try {
|
| - let result = await Promise.reject(new Error("2"))
|
| - thenCallback(result);
|
| - } catch (e) {
|
| - errorCallback(e);
|
| - }
|
| -}
|
| -
|
| var test = function()
|
| {
|
| - var totalDebuggerStatements = 15;
|
| + var totalDebuggerStatements = 10;
|
| var maxAsyncCallStackDepth = 5;
|
| InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallStackDepth);
|
| }
|
|
|