Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-callstack-async-await1.html

Issue 2214063002: [LayoutTests] Split up async-callstack-async-await* tests to mitigate timeouts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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-await1.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-callstack-async-await1.html
index c1c4d4a4184211a8d928e60b57d2c62f4117b68e..e6b33037ec0e5d92cd3da1397ec75447645ba04d 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-await/async-callstack-async-await1.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];
+ var functions = [doTestPromiseConstructor, doTestSettledPromisesResolved, doTestSettledPromisesRejected];
for (var i = 0; i < functions.length; ++i)
functions[i]();
}
@@ -93,38 +93,9 @@ async function doTestSettledPromisesRejected()
}
}
-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);
- }
-}
-
var test = function()
{
- var totalDebuggerStatements = 10;
+ var totalDebuggerStatements = 4;
var maxAsyncCallStackDepth = 5;
InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallStackDepth);
}

Powered by Google App Engine
This is Rietveld 408576698