mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-04 22:16:32 +01:00
The scrolling suite checks where a window out of view rests, which is at the edge it left by with a few pixels on the screen, and runs pan, consume, toggle-column-stack, expel and scrolling-layout-full-width. They are not in the shared scenario, which komorebi for Windows runs too, and has them only on its next branch. Not run: the VM suites are for a later run.
30 lines
1.4 KiB
Python
30 lines
1.4 KiB
Python
# The scrolling layout in a real KWin. The strip runs past the edge of the work area, and KWin is
|
|
# expected to leave the windows exactly where komorebi puts them: a window that is out of view rests
|
|
# at the edge it left by, with a few pixels of it on the screen. What only a real KWin can tell is in
|
|
# `komorebi_vm.platforms.kde.extras.scrolling`: that KWin keeps them there, that the strip scrolls
|
|
# with the focus `komorebic focus` moves, and the commands of the columns that hold several windows
|
|
# (`consume`, `expel`, `toggle-column-stack`, `scrolling-layout-full-width`, `pan`). The shared scenario
|
|
# (`komorebi_vm.core.scenarios.scrolling`), which `core-e2e` runs and which runs on Windows too,
|
|
# checks the focused window is in view. `komorebi/tests/layout_options.rs` checks where komorebi
|
|
# puts the columns against the fake.
|
|
from komorebi_vm import Checks, Kde
|
|
from komorebi_vm.core.suite import platform_only, run_suite
|
|
from komorebi_vm.kde_platform import KdePlatform
|
|
from komorebi_vm.platforms.kde.extras import scrolling as kde_scrolling
|
|
|
|
W, H = 1920, 1080
|
|
|
|
start_all()
|
|
machine.wait_for_unit("multi-user.target")
|
|
machine.wait_for_unit("user@1000.service")
|
|
|
|
checks = Checks()
|
|
kde = Kde.headless(machine, "main", size=(W, H), scale=SCALE)
|
|
platform = KdePlatform(kde, (W, H))
|
|
platform.start_komorebi()
|
|
|
|
run_suite(checks, platform_only("kde", kde_scrolling.run, platform, checks, []))
|
|
|
|
kde.stop()
|
|
checks.finish()
|