mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-18 14:48:34 +01:00
feat(nix): the monocle and closing scenarios, and Platform.close
monocle toggles monocle on the focused window and checks that it fills the work area up to the layout's padding, that the state has it as the monocle container, that every other window is put away, that it keeps the focus, and that toggling back puts every window in view on the tile it had. closing closes a window and checks that the OS has no frame for it, that the daemon manages one window fewer, and that the windows left in view take more room between them, inside the work area and clear of each other. Platform.close closes a window as its button would; KdePlatform does it with kdotool. The fake daemon models monocle and closing, and its os_window now knows the workspace a window is on, which the workspaces scenario had passed without. core-e2e runs both: 120 checks pass on KVM.
This commit is contained in:
1 parent
37b75f8205
commit
ed792445d0
9 files changed
+203
-17
No files matched your search
@@ -157,15 +157,16 @@ the run.
|
||||
a screenshot. Where the platform has a pointer (`has("pointer")`), a scenario moves
|
||||
it with `pointer.drag`; where it has none, the scenario says so and is skipped.
|
||||
`core/scenarios` has the scenarios written against it: `tiling`, `focus`, `moving`,
|
||||
`stacks`, `workspaces` and `resize`. A method is added with the first scenario that
|
||||
`stacks`, `monocle`, `workspaces`, `closing` and `resize`. A method is added with the first scenario that
|
||||
needs it. `KdePlatform` (`kde_platform.py`) is a `Kde` session as a `Platform`.
|
||||
[Writing a scenario](#writing-a-scenario) says how to add one.
|
||||
|
||||
The scenarios run on two platforms. KDE runs all six: five at the end of `core-e2e`,
|
||||
The scenarios run on two platforms. KDE runs all eight: seven at the end of `core-e2e`,
|
||||
and `resize`, which needs a pointer, at the end of `drag-resize`. A Windows 11 guest
|
||||
under QEMU, which kfw drives from its own tree, has run `tiling`, `focus`, `moving`,
|
||||
`stacks` and `workspaces` against kfw's daemon (reported by the session that ran them,
|
||||
2026-10-29, with this `core/` copied unchanged); `resize` has not run there yet.
|
||||
2026-10-29, with this `core/` copied unchanged); `monocle` and `closing` have not, and `resize` ran with a shortfall that is a finding about kfw
|
||||
(the edge moves less than the pointer).
|
||||
`scripts/sync-e2e-core` keeps kfw's copy of `core/` in step until `core/` moves there.
|
||||
- `Checks` counts checks and fails once, at the end, so that one failure does
|
||||
not hide the ones after it. `finish()` prints `passed: N failed: M`, and its
|
||||
|
||||
Reference in new issue
Block a user