Skip to main content

Module snapshot

Module snapshot 

Source
Expand description

Canonical layout dumps for snapshot tests. Canonical layout dump for core WidgetConfig snapshot tests.

Constants§

CORE_ELEMENTS
Core elements present on every platform with preserved IR semantics. Pixel-identical rendering is not guaranteed — see degraded cells in the capability matrix (image.systemName, Windows zstack / shape, …).
EXTENDED_ELEMENTS
Extended / best-effort elements (platform-dependent).

Functions§

dump_config
Dump a config to a stable JSON tree (nulls omitted, keys sorted via serde_json Map order of insertion — we insert in a fixed order).
is_core_element
true when ty is in CORE_ELEMENTS.