Interface: WindowHostContractSetup
Defined in: 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
| Property | Type | Description | Defined in |
|---|---|---|---|
attach? | (id: string) => void | Attach the panel for a window, where the adapter attaches asynchronously. Omit it when the panel exists as soon as the window does. | webxr-uiextensions/src/contract-cases.ts:43 |
host | WindowHost | The host under test. | webxr-uiextensions/src/contract-cases.ts:31 |
manager | WindowManager | The manager the host applies. close() on it is the one teardown call app code has, so the suite proves the host honours it. | webxr-uiextensions/src/contract-cases.ts:36 |
panelConfig? | unknown | A config createPanel accepts, for hosts that support bare panels. | webxr-uiextensions/src/contract-cases.ts:45 |
Methods
createWindow()
createWindow(id: string): WindowHandle;
Defined in: webxr-uiextensions/src/contract-cases.ts:38
Spawn one window with this id, using whatever config the adapter needs.
Parameters
| Parameter | Type |
|---|---|
id | string |