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

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

Issue 2099723002: [LayoutTests] Split up inspector/sources/debugger-async/async-await/async-callstack-async-await.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skip tests except in virtual suite Created 4 years, 6 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-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);
}

Powered by Google App Engine
This is Rietveld 408576698