Commit 3b537802 authored by Alexey Kozyatinskiy's avatar Alexey Kozyatinskiy Committed by Commit Bot

[DevTools] prepared tests for reworked async instrumentation

- Promise.resolve -> Promise.then
- Promise.reject -> Promise.catch

R=dgozman@chromium.org

Bug: chromium:778796
Change-Id: Ieca9cb08f474a600752e8ae6520a6d93452cb084
Reviewed-on: https://chromium-review.googlesource.com/767008
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#516096}
parent b41fa5c4
......@@ -3239,6 +3239,17 @@ crbug.com/763597 external/wpt/html/semantics/scripting-1/the-script-element/modu
# module script lacks XHTML support
crbug.com/717643 external/wpt/html/semantics/scripting-1/the-script-element/module/module-in-xhtml.xhtml [ Failure ]
crbug.com/778796 http/tests/devtools/console/console-custom-formatters.js [ Skip ]
crbug.com/778796 http/tests/devtools/console/console-uncaught-promise-in-worker.js [ Skip ]
crbug.com/778796 http/tests/devtools/sources/debugger-async/async-callstack-promises.js [ Skip ]
crbug.com/778796 http/tests/devtools/sources/debugger-step/debugger-step-through-promises.js [ Skip ]
crbug.com/778796 http/tests/devtools/sources/debugger/async-callstack-fetch.js [ Skip ]
crbug.com/778796 virtual/mojo-loading/http/tests/devtools/console/console-custom-formatters.js [ Skip ]
crbug.com/778796 virtual/mojo-loading/http/tests/devtools/console/console-uncaught-promise-in-worker.js [ Skip ]
crbug.com/778796 virtual/mojo-loading/http/tests/devtools/sources/debugger-async/async-callstack-promises.js [ Skip ]
crbug.com/778796 virtual/mojo-loading/http/tests/devtools/sources/debugger-step/debugger-step-through-promises.js [ Skip ]
crbug.com/778796 virtual/mojo-loading/http/tests/devtools/sources/debugger/async-callstack-fetch.js [ Skip ]
# known bug: import() inside set{Timeout,Interval}
crbug.com/773622 external/wpt/html/semantics/scripting-1/the-script-element/module/dynamic-import/string-compilation-base-url-classic.html [ Failure ]
crbug.com/773622 external/wpt/html/semantics/scripting-1/the-script-element/module/dynamic-import/string-compilation-base-url-module.html [ Failure ]
......
......@@ -6,7 +6,4 @@ console-custom-formatters.js:122 Header formatted by 1 cBody formatted by 1 c
console-custom-formatters.js:123 Formatter with config Header info: additional infobodyinfo: additional info
console-custom-formatters.js:124 Formatter with config Formatter with config Formatter with config Formatter with config Formatter with config Formatter with config Formatter with config Formatter with config Formatter with config Object
Custom Formatter Failed: Too deep hierarchy of inlined custom previews undefined
Promise resolved (async)
logVars @ console-custom-formatters.js:124
(anonymous) @ console-custom-formatters.js:131
......@@ -3,19 +3,19 @@ Tests that uncaught promise rejections happenned in workers are logged into cons
worker-with-unhandled-promises.js:3 Uncaught (in promise) Error: err1
runPromisesInWorker @ worker-with-unhandled-promises.js:3
onmessage @ worker-with-unhandled-promises.js:25
Promise rejected (async)
Promise.then (async)
runPromisesInWorker @ worker-with-unhandled-promises.js:6
onmessage @ worker-with-unhandled-promises.js:25
worker-with-unhandled-promises.js:21 Uncaught (in promise) Error: err2
runPromisesInWorker @ worker-with-unhandled-promises.js:21
onmessage @ worker-with-unhandled-promises.js:25
Promise rejected (async)
Promise.then (async)
(anonymous) @ worker-with-unhandled-promises.js:17
Promise rejected (async)
Promise.catch (async)
(anonymous) @ worker-with-unhandled-promises.js:16
Promise rejected (async)
Promise.catch (async)
(anonymous) @ worker-with-unhandled-promises.js:15
Promise rejected (async)
Promise.catch (async)
runPromisesInWorker @ worker-with-unhandled-promises.js:14
onmessage @ worker-with-unhandled-promises.js:25
......@@ -4,7 +4,7 @@ Set timer for test function.
Captured call stacks in no particular order:
Call stack:
0) afterJSONStringifyAndParse (async-callstack-promises.js:100)
[Promise.resolve]
[Promise.then]
0) doTestChainedPromises (async-callstack-promises.js:99)
1) testFunctionTimeout (async-callstack-promises.js:53)
[setTimeout]
......@@ -15,7 +15,7 @@ Call stack:
Call stack:
0) catchCallback (async-callstack-promises.js:121)
[Promise.reject]
[Promise.catch]
0) doTestThrowFromChain (async-callstack-promises.js:120)
1) testFunctionTimeout (async-callstack-promises.js:53)
[setTimeout]
......@@ -26,7 +26,7 @@ Call stack:
Call stack:
0) catchCallback (async-callstack-promises.js:133)
[Promise.reject]
[Promise.catch]
0) doTestThrowFromChain (async-callstack-promises.js:132)
1) testFunctionTimeout (async-callstack-promises.js:53)
[setTimeout]
......@@ -37,7 +37,7 @@ Call stack:
Call stack:
0) chained1 (async-callstack-promises.js:83)
[Promise.resolve]
[Promise.then]
0) doTestChainedPromises (async-callstack-promises.js:82)
1) testFunctionTimeout (async-callstack-promises.js:53)
[setTimeout]
......@@ -48,7 +48,7 @@ Call stack:
Call stack:
0) chained2 (async-callstack-promises.js:86)
[Promise.resolve]
[Promise.then]
0) doTestChainedPromises (async-callstack-promises.js:85)
1) testFunctionTimeout (async-callstack-promises.js:53)
[setTimeout]
......@@ -59,7 +59,7 @@ Call stack:
Call stack:
0) chained3 (async-callstack-promises.js:89)
[Promise.resolve]
[Promise.then]
0) doTestChainedPromises (async-callstack-promises.js:88)
1) testFunctionTimeout (async-callstack-promises.js:53)
[setTimeout]
......@@ -70,7 +70,7 @@ Call stack:
Call stack:
0) chained4 (async-callstack-promises.js:92)
[Promise.resolve]
[Promise.then]
0) doTestChainedPromises (async-callstack-promises.js:91)
1) testFunctionTimeout (async-callstack-promises.js:53)
[setTimeout]
......@@ -81,7 +81,7 @@ Call stack:
Call stack:
0) errorCallback (async-callstack-promises.js:63)
[Promise.reject]
[Promise.then]
0) doTestPromiseResolveAndReject (async-callstack-promises.js:140)
1) testFunctionTimeout (async-callstack-promises.js:53)
[setTimeout]
......@@ -92,7 +92,7 @@ Call stack:
Call stack:
0) errorCallback (async-callstack-promises.js:63)
[Promise.reject]
[Promise.then]
0) doTestSettledPromises (async-callstack-promises.js:77)
1) testFunctionTimeout (async-callstack-promises.js:53)
[setTimeout]
......@@ -113,7 +113,7 @@ Call stack:
Call stack:
0) thenCallback (async-callstack-promises.js:58)
[Promise.resolve]
[Promise.then]
0) doTestChainedPromises (async-callstack-promises.js:94)
1) testFunctionTimeout (async-callstack-promises.js:53)
[setTimeout]
......@@ -124,7 +124,7 @@ Call stack:
Call stack:
0) thenCallback (async-callstack-promises.js:58)
[Promise.resolve]
[Promise.then]
0) doTestPromiseAll (async-callstack-promises.js:107)
1) testFunctionTimeout (async-callstack-promises.js:53)
[setTimeout]
......@@ -135,7 +135,7 @@ Call stack:
Call stack:
0) thenCallback (async-callstack-promises.js:58)
[Promise.resolve]
[Promise.then]
0) doTestPromiseResolveAndReject (async-callstack-promises.js:139)
1) testFunctionTimeout (async-callstack-promises.js:53)
[setTimeout]
......@@ -146,7 +146,7 @@ Call stack:
Call stack:
0) thenCallback (async-callstack-promises.js:58)
[Promise.resolve]
[Promise.then]
0) doTestSettledPromises (async-callstack-promises.js:76)
1) testFunctionTimeout (async-callstack-promises.js:53)
[setTimeout]
......
......@@ -3,7 +3,7 @@ Tests that debugger will step through Promise handlers while not stepping into V
Set timer for test function.
Call stack:
0) p1 (debugger-step-through-promises.js:19)
[Promise.resolve]
[Promise.then]
0) testFunction (debugger-step-through-promises.js:16)
[setTimeout]
0) scheduleTestFunction <omitted>
......@@ -12,7 +12,7 @@ Call stack:
Executing StepInto...
Call stack:
0) p1 (debugger-step-through-promises.js:20)
[Promise.resolve]
[Promise.then]
0) testFunction (debugger-step-through-promises.js:16)
[setTimeout]
0) scheduleTestFunction <omitted>
......@@ -21,7 +21,7 @@ Call stack:
Executing StepInto...
Call stack:
0) p2 (debugger-step-through-promises.js:24)
[Promise.resolve]
[Promise.then]
0) testFunction (debugger-step-through-promises.js:21)
[setTimeout]
0) scheduleTestFunction <omitted>
......@@ -30,7 +30,7 @@ Call stack:
Executing StepOver...
Call stack:
0) p2 (debugger-step-through-promises.js:24)
[Promise.resolve]
[Promise.then]
0) testFunction (debugger-step-through-promises.js:21)
[setTimeout]
0) scheduleTestFunction <omitted>
......@@ -39,7 +39,7 @@ Call stack:
Executing StepOver...
Call stack:
0) p3 (debugger-step-through-promises.js:29)
[Promise.resolve]
[Promise.then]
0) testFunction (debugger-step-through-promises.js:26)
[setTimeout]
0) scheduleTestFunction <omitted>
......@@ -48,7 +48,7 @@ Call stack:
Executing StepOver...
Call stack:
0) p3 (debugger-step-through-promises.js:29)
[Promise.resolve]
[Promise.then]
0) testFunction (debugger-step-through-promises.js:26)
[setTimeout]
0) scheduleTestFunction <omitted>
......
......@@ -4,7 +4,7 @@ Set timer for test function.
Captured call stacks in no particular order:
Call stack:
0) chained1 (async-callstack-fetch.js:18)
[Promise.resolve]
[Promise.then]
0) doFetch (async-callstack-fetch.js:17)
[setTimeout]
0) testFunction (async-callstack-fetch.js:12)
......@@ -14,7 +14,7 @@ Call stack:
Call stack:
0) chained4 (async-callstack-fetch.js:22)
[Promise.resolve]
[Promise.then]
0) doFetch (async-callstack-fetch.js:21)
[setTimeout]
0) testFunction (async-callstack-fetch.js:12)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment