Home Reference Source
public class | source

JSCoverage

Constructor Summary

Public Constructor
public

constructor(client: Chrome | CRIConnection | CDPSession | Object)

Member Summary

Private Members
private
private
private
private
private
private
private

Method Summary

Public Methods
public

async start(options: {resetOnNavigation?: boolean, reportAnonymousScripts?: boolean})

public
Private Methods
private
private

async _onScriptParsed(event: Object)

Public Constructors

public constructor(client: Chrome | CRIConnection | CDPSession | Object) source

Params:

NameTypeAttributeDescription
client Chrome | CRIConnection | CDPSession | Object

Private Members

private _client: Chrome | CRIConnection | CDPSession | Object source

private _enabled: boolean source

private _eventListeners: *[] source

private _reportAnonymousScripts: * source

private _resetOnNavigation: boolean source

private _scriptSources: * source

private _scriptURLs: * source

Public Methods

public async start(options: {resetOnNavigation?: boolean, reportAnonymousScripts?: boolean}) source

Params:

NameTypeAttributeDescription
options {resetOnNavigation?: boolean, reportAnonymousScripts?: boolean}
  • nullable: false

public async stop(): Promise<Array<CoverageEntry>> source

Private Methods

private _onExecutionContextsCleared() source

private async _onScriptParsed(event: Object) source

Params:

NameTypeAttributeDescription
event Object
  • nullable: false