main/smoke-test
Interfaces
Section titled “Interfaces”SmokeReport
Section titled “SmokeReport”Defined in: app/src/main/smoke-test.ts:8
The report that a packaged build writes in self-test mode.
Properties
Section titled “Properties”
readonlyarch:string
Defined in: app/src/main/smoke-test.ts:13
errors
Section titled “errors”
readonlyerrors: readonlystring[]
Defined in: app/src/main/smoke-test.ts:27
readonlymarks:Readonly<Record<string,number>>
Defined in: app/src/main/smoke-test.ts:23
Milliseconds since process start at each start-up step. The page.* marks come from
the shell page itself: its Navigation Timing and the marks that it sets.
readonlyok:boolean
Defined in: app/src/main/smoke-test.ts:9
packaged
Section titled “packaged”
readonlypackaged:boolean
Defined in: app/src/main/smoke-test.ts:14
platform
Section titled “platform”
readonlyplatform:string
Defined in: app/src/main/smoke-test.ts:12
readyAt
Section titled “readyAt”
readonlyreadyAt:number
Defined in: app/src/main/smoke-test.ts:18
Wall-clock time of that moment, so a harness can measure from the spawn.
rendererSandboxed
Section titled “rendererSandboxed”
readonlyrendererSandboxed:boolean|"unknown"
Defined in: app/src/main/smoke-test.ts:26
Whether renderer processes run inside the Chromium sandbox.
shellReadyMs
Section titled “shellReadyMs”
readonlyshellReadyMs:number
Defined in: app/src/main/smoke-test.ts:16
Milliseconds from process start until the shell finished loading and rendered.
shellUrl
Section titled “shellUrl”
readonlyshellUrl:string
Defined in: app/src/main/smoke-test.ts:24
version
Section titled “version”
readonlyversion:string
Defined in: app/src/main/smoke-test.ts:10
versions
Section titled “versions”
readonlyversions:Readonly<Record<string,string|undefined>>
Defined in: app/src/main/smoke-test.ts:11
Functions
Section titled “Functions”runSandboxHelpSmokeTest()
Section titled “runSandboxHelpSmokeTest()”runSandboxHelpSmokeTest(
contents,reportPath):void
Defined in: app/src/main/smoke-test.ts:170
Self-test of the sandbox help mode: reports that the help page loaded and quits.
Parameters
Section titled “Parameters”contents
Section titled “contents”WebContents
The help page.
reportPath
Section titled “reportPath”string
Where to write the report.
Returns
Section titled “Returns”void
runSmokeTest()
Section titled “runSmokeTest()”runSmokeTest(
window,reportPath,options):void
Defined in: app/src/main/smoke-test.ts:62
Runs the self-test of a packaged build: waits for the first window’s shell and tab, writes a JSON report and quits. Installers and CI use it to check every package; the performance harness keeps the browser running to measure it.
Parameters
Section titled “Parameters”window
Section titled “window”The first window.
reportPath
Section titled “reportPath”string
Where to write the report.
options
Section titled “options”Whether the browser stays open after the report, the start-up marks so
far, and the wall-clock time at which their clock, performance.now(), started.
keepRunning
Section titled “keepRunning”boolean
Readonly<Record<string, number>>
timeOrigin
Section titled “timeOrigin”number
Returns
Section titled “Returns”void