mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(JSCoverageEntry): added scriptId and isBlockCoverage (#2955)
This commit is contained in:
parent
424f11d165
commit
16e3776a9c
@ -4299,9 +4299,11 @@ const v8toIstanbul = require('v8-to-istanbul');
|
||||
#### chromiumCoverage.stopJSCoverage()
|
||||
- returns: <[Promise]<[Array]<[Object]>>> Promise that resolves to the array of coverage reports for all scripts
|
||||
- `url` <[string]> Script URL
|
||||
- `scriptId` <[string]> Script ID
|
||||
- `source` <[string]> Script content, if applicable.
|
||||
- `functions` <[Array]<[Object]>> V8-specific coverage format.
|
||||
- `functionName` <[string]>
|
||||
- `isBlockCoverage` <[boolean]>
|
||||
- `ranges` <[Array]<[Object]>>
|
||||
- `count` <[number]>
|
||||
- `startOffset` <[number]>
|
||||
|
||||
@ -149,9 +149,11 @@ export type CSSCoverageEntry = {
|
||||
|
||||
export type JSCoverageEntry = {
|
||||
url: string,
|
||||
scriptId: string,
|
||||
source?: string,
|
||||
functions: {
|
||||
functionName: string,
|
||||
isBlockCoverage: boolean,
|
||||
ranges: JSRange[]
|
||||
}[]
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user