mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-21 08:01:39 +01:00
The layouts, flipping, layout_flip, padding, tiling and closing e2e scenarios assert, among other things, that each layout puts one tile per window inside the work area, none over another, that a flip mirrors the layout and that container padding shrinks each tile. That is arithmetic of komorebi-layouts and needs no window manager. komorebi-layouts/tests/layouts_everywhere.rs runs the eight layouts of the layouts scenario over three work areas (one off the origin, one with negative left), 1 to 12 windows and paddings none/0/10/30, and asserts: one tile per window; inside the area; no overlap; tiles fill the area exactly (all but grid); fewer windows give a tile at least as big; one window has the area less padding; padding shrinks every tile; the three flips equal the unflipped tiles mirrored as a set; a vertical flip only moves tiles up or down. Each test names the e2e checks it mirrors. What stays e2e only: that a daemon hands these rectangles to the OS, and that the OS frames agree (borders, client rounding, timing, the layouts scenario's wait for the windows to settle). Verified: cargo test -p komorebi-layouts --test layouts_everywhere, 8 passed (native, Linux). No source change, no bug found.