tests.ReplayOptions
Describes the device a recording came from, its fonts and its window, so a replay lays out as it did.
Verwendung
Compare a recorded native batch stream with its saved tree.
Dieser Typ wird verwendet von tests.replay
// Compare a recorded native batch stream with its saved tree.
import { assert, replay, test } from 'kuito/tests';
test('recorded checkout keeps its native tree', async () => {
// Supply a .krec recording and its adjacent .tree file from your app.
const result = await replay('tests/fixtures/checkout.krec');
assert.notEqual(result.recorded, null);
assert.equal(result.tree, result.recorded);
});Typdeklaration
export interface ReplayOptions {
/** The fonts the recording's device drew with: its text sizes follow them. */
fonts?: FontTable;
/** The recording device's window. */
screen?: Screen;
}Mitglieder 2
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
fonts | FontTable | Nein | The fonts the recording's device drew with: its text sizes follow them. |
screen | Screen | Nein | The recording device's window. |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.