Expand description
An in-memory backend for integration tests.
It keeps a mirror of the native tree like a real backend would, validates
every command against the protocol (panicking on violations), and measures
text with fixed, platform-independent metrics so layouts are deterministic:
each character is 0.5em wide and lines are 1.25em tall.
Structs§
- Fake
Services - Install with
Ui::set_services. - Fake
Services Handle - The test’s side of
FakeServices. - Headless
Backend - The backend. Hand it to
Ui::new; keep aHeadlessHandleto inspect it afterwards. - Headless
Handle - Shared access to a
HeadlessBackendafter it was moved into aUi. - Pending
- A request waiting for the test to answer it.
Functions§
- metrics
- Fixed metrics: 16px body text, 4/8/12/16/24 spacing, scale factor 1.
Type Aliases§
- Pending
Alert - Pending
Launch - A file, folder or URL to open in another app.
- Pending
Open - Pending
Save - Pending
Trash - Items to move to the trash; the test moves them (or not) and answers.