a81e8d16f4
Previously the `Debugger.CallFrame`s in `Debugger.paused` events would report locations relative to the surrounding document in case of inline scripts with `//@ sourceURL` annotations (while `Runtime.CallFrame` was already fixed previously as part of crrev.com/c/3069289). With this CL the locations in `Debugger.CallFrame` are also appropriately adjusted. Drive-by-fix: Several inspector tests were (incorrectly) relying on this wrong treatment, and were also unnecessarily using //# sourceURL annotations. So part of this CL also addresses that problem and makes the tests more robust, using addInlineScript() helper. Fixed: chromium:1283049 Bug: chromium:1183990, chromium:578269 Change-Id: I6e3b215d951c3453c0a9cfc9bccf3dc3d5e92fd6 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3359619 Auto-Submit: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/main@{#78450}
134 lines
3.0 KiB
Plaintext
134 lines
3.0 KiB
Plaintext
Checks that async chains for promises are correct.
|
|
|
|
Running test: testPromise
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
promise (test.js:19:14)
|
|
(anonymous) (testPromise.js:0:0)
|
|
|
|
|
|
Running test: testPromiseResolvedBySetTimeout
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
promiseResolvedBySetTimeout (test.js:27:14)
|
|
(anonymous) (testPromiseResolvedBySetTimeout.js:0:0)
|
|
|
|
|
|
Running test: testPromiseAll
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
promiseAll (test.js:37:35)
|
|
(anonymous) (testPromiseAll.js:0:0)
|
|
|
|
|
|
Running test: testPromiseAllReverseOrder
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
promiseAllReverseOrder (test.js:48:35)
|
|
(anonymous) (testPromiseAllReverseOrder.js:0:0)
|
|
|
|
|
|
Running test: testPromiseRace
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
promiseRace (test.js:59:36)
|
|
(anonymous) (testPromiseRace.js:0:0)
|
|
|
|
|
|
Running test: testTwoChainedCallbacks
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
twoChainedCallbacks (test.js:68:14)
|
|
(anonymous) (testTwoChainedCallbacks.js:0:0)
|
|
|
|
foo2 (test.js:13:2)
|
|
-- Promise.then --
|
|
twoChainedCallbacks (test.js:68:25)
|
|
(anonymous) (testTwoChainedCallbacks.js:0:0)
|
|
|
|
|
|
Running test: testPromiseResolve
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
promiseResolve (test.js:74:27)
|
|
(anonymous) (testPromiseResolve.js:0:0)
|
|
|
|
foo2 (test.js:13:2)
|
|
-- Promise.then --
|
|
promiseResolve (test.js:74:38)
|
|
(anonymous) (testPromiseResolve.js:0:0)
|
|
|
|
|
|
Running test: testThenableJobResolvedInSetTimeout
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
thenableJobResolvedInSetTimeout (test.js:86:40)
|
|
(anonymous) (testThenableJobResolvedInSetTimeout.js:0:0)
|
|
|
|
|
|
Running test: testThenableJobResolvedInSetTimeoutWithStack
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
thenableJobResolvedInSetTimeoutWithStack (test.js:104:40)
|
|
(anonymous) (testThenableJobResolvedInSetTimeoutWithStack.js:0:0)
|
|
|
|
|
|
Running test: testThenableJobResolvedByPromise
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
thenableJobResolvedByPromise (test.js:118:40)
|
|
(anonymous) (testThenableJobResolvedByPromise.js:0:0)
|
|
|
|
|
|
Running test: testThenableJobResolvedByPromiseWithStack
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
thenableJobResolvedByPromiseWithStack (test.js:136:40)
|
|
(anonymous) (testThenableJobResolvedByPromiseWithStack.js:0:0)
|
|
|
|
|
|
Running test: testLateThenCallback
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
lateThenCallback (test.js:145:12)
|
|
(anonymous) (testLateThenCallback.js:0:0)
|
|
|
|
|
|
Running test: testComplex
|
|
inner1 (test.js:154:6)
|
|
foo1 (test.js:156:4)
|
|
-- Promise.then --
|
|
complex (test.js:202:5)
|
|
(anonymous) (testComplex.js:0:0)
|
|
|
|
(anonymous) (test.js:207:8)
|
|
-- Promise.then --
|
|
(anonymous) (test.js:206:8)
|
|
-- Promise.then --
|
|
(anonymous) (test.js:205:6)
|
|
-- setTimeout --
|
|
complex (test.js:204:2)
|
|
(anonymous) (testComplex.js:0:0)
|
|
|
|
|
|
Running test: testReject
|
|
foo1 (test.js:9:2)
|
|
-- Promise.catch --
|
|
reject (test.js:217:31)
|
|
(anonymous) (testReject.js:0:0)
|
|
|
|
|
|
Running test: testFinally1
|
|
foo1 (test.js:9:2)
|
|
-- Promise.finally --
|
|
finally1 (test.js:221:33)
|
|
(anonymous) (testFinally1.js:0:0)
|
|
|
|
|
|
Running test: testFinally2
|
|
foo1 (test.js:9:2)
|
|
-- Promise.finally --
|
|
finally2 (test.js:225:34)
|
|
(anonymous) (testFinally2.js:0:0)
|
|
|