Skip to main content

Interface: WindowHostContractSetup

Defined in: packages/webxr-uiextensions/src/contract-cases.ts:29

Everything a case needs to drive one adapter. Build a FRESH one per case: cases spawn windows of their own and do not clean up after themselves.

Properties

PropertyTypeDescriptionDefined in
attach?(id: string) => voidAttach the panel for a window, where the adapter attaches asynchronously. Omit it when the panel exists as soon as the window does.packages/webxr-uiextensions/src/contract-cases.ts:43
hostWindowHostThe host under test.packages/webxr-uiextensions/src/contract-cases.ts:31
managerWindowManagerThe manager the host applies. close() on it is the one teardown call app code has, so the suite proves the host honours it.packages/webxr-uiextensions/src/contract-cases.ts:36
panelConfig?unknownA config createPanel accepts, for hosts that support bare panels.packages/webxr-uiextensions/src/contract-cases.ts:45

Methods

createWindow()

createWindow(id: string): WindowHandle;

Defined in: packages/webxr-uiextensions/src/contract-cases.ts:38

Spawn one window with this id, using whatever config the adapter needs.

Parameters

ParameterType
idstring

Returns

WindowHandle