| Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-callstack-async-await2.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-await2.html
|
| similarity index 63%
|
| rename from third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-callstack-async-await.html
|
| rename to third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-callstack-async-await2.html
|
| index dcb1c026c6bf17b26cf98b48cda8047e449b2cd1..77b73e4958935df4a9a8a511d472986d3edf7a8d 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-await2.html
|
| @@ -45,7 +45,7 @@ function testFunction()
|
|
|
| function testFunctionTimeout()
|
| {
|
| - var functions = [doTestPromiseConstructor, doTestSettledPromisesResolved, doTestSettledPromisesRejected, doTestChainedPromises, doTestChainedPromisesJSON, doTestPromiseAll, doTestThrowFromChain, doTestRejectFromChain, doTestPromiseResolve, doTestPromiseReject];
|
| + var functions = [doTestPromiseAll, doTestThrowFromChain, doTestRejectFromChain, doTestPromiseResolve, doTestPromiseReject];
|
| for (var i = 0; i < functions.length; ++i)
|
| functions[i]();
|
| }
|
| @@ -60,68 +60,6 @@ function errorCallback(error)
|
| debugger;
|
| }
|
|
|
| -async function doTestPromiseConstructor()
|
| -{
|
| - try {
|
| - let result = await new Promise(function promiseCallback(resolve, reject) {
|
| - resolve(1);
|
| - debugger;
|
| - });
|
| - thenCallback(result);
|
| - } catch (e) {
|
| - errorCallback(e);
|
| - }
|
| -}
|
| -
|
| -async function doTestSettledPromisesResolved()
|
| -{
|
| - try {
|
| - let value = await settledPromise("resolved");
|
| - thenCallback(value);
|
| - } catch (e) {
|
| - errorCallback(e);
|
| - }
|
| -}
|
| -
|
| -async function doTestSettledPromisesRejected()
|
| -{
|
| - try {
|
| - let value = await settledPromise(new Error("rejected"));
|
| - thenCallback(value);
|
| - } catch (e) {
|
| - errorCallback(e);
|
| - }
|
| -}
|
| -
|
| -async function doTestChainedPromises()
|
| -{
|
| - try {
|
| - await timeoutPromise(1);
|
| - debugger;
|
| - await timeoutPromise(2);
|
| - debugger;
|
| - await 3;
|
| - debugger;
|
| - await settledPromise(4);
|
| - debugger;
|
| - thenCallback(await timeoutPromise(5));
|
| - } catch (e) {
|
| - errorCallback(e);
|
| - }
|
| -}
|
| -
|
| -async function doTestChainedPromisesJSON()
|
| -{
|
| - try {
|
| - let one = await timeoutPromise(1);
|
| - let stringify = await JSON.stringify(one);
|
| - let parse = await JSON.parse(stringify);
|
| - thenCallback(parse);
|
| - } catch (e) {
|
| - errorCallback(e);
|
| - }
|
| -}
|
| -
|
| async function doTestPromiseAll()
|
| {
|
| try {
|
| @@ -194,7 +132,7 @@ async function doTestPromiseReject()
|
|
|
| var test = function()
|
| {
|
| - var totalDebuggerStatements = 15;
|
| + var totalDebuggerStatements = 5;
|
| var maxAsyncCallStackDepth = 5;
|
| InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallStackDepth);
|
| }
|
|
|