mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-19 07:08:48 +01:00
The Windows e2e scenarios layouts (111 checks), flipping, layout_flip, padding, closing, minimizing, floating, stacks, tiling and tiling_off assert where the tiles of a workspace are. Since the consolidation every daemon gets those tiles from komorebi-core's Workspace::update_shared, so they can be checked on the stub platform on Linux (and on the Mac Mini for macOS) instead of in a guest. crates/komorebi-core/tests/e2e_layouts.rs (6 tests) runs update_shared on a StubPlatform workspace for the 8 layouts of the scenario, 1 to 8 containers and three padding settings: one tile per container, inside the work area, not on each other; workspace padding moves tiles 40 px in, container padding shrinks every tile, and back as it was; each of the three flips equals the plain tiles mirrored (as a set); removing a container (what a closed, minimized or floated window does) leaves the others at least as much room; two containers, one a stack of two, are two tiles; with tiling off nothing is placed in any layout. Each test names the e2e checks it mirrors. They protect Windows, KDE and macOS alike. Platform dependent: the stub adds no border and no frame adjustment, so the Windows border of 7 px (windows_padding) and each daemon's own adjust_layout stay e2e only, as does the OS frame matching the tile. Verified: cargo test -p komorebi-core --test e2e_layouts, 6 passed (native Linux; macOS crates run later on the Mini). No source change, no bug found.