Drop the screenshot tests and the moon-disc module; just test runs every lib package
- Tests that only wrote PNGs to look at are gone: desktop, overview (and its overview_shot helper), editor, emoji picker, launcher/Icon Desktop and dock screenshots. They were among the slowest in the suite; the behaviour they touched has its own tests. - moon-disc never had source in the tree, so every fresh panel said "Module 'moon-disc' not found". It is out of the default panel, and a saved panel drops it (migrate_panel). The settings module's sample rows and labels no longer mention it. - The settings module lists Show Desktop under "Apps and windows", with a description. - just test ran lib/taskbar, lib/layoutpick and lib/modmgr, which no longer exist, so the wasm lib tests failed to start; it now runs every package in lib/ (83 tests). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e2dc2bb930
commit
7ce5b79af2
13 files changed
+20
-270
No files matched your search
@@ -399,33 +399,6 @@ test "middle click closes a window from the overview and it stays open" {
|
||||
assert_true(drain_msgs(clients[ci]).iter().any(m => m.1 == 1U))
|
||||
}
|
||||
|
||||
///|
|
||||
fn overview_shot(n : Int, dark : Bool) -> Unit raise {
|
||||
let tag = "ovshot" + n.to_string() + (if dark { "d" } else { "l" })
|
||||
let socket_path = "/tmp/wayland-moon-" + tag + "-" + @sys.getpid().to_string() + ".sock"
|
||||
let comp = @host.ChandraCompositor::new(socket_path, @scene.ThemeTokens::moon_night(), 1280, 720).unwrap()
|
||||
comp.shell.dark_mode = dark
|
||||
comp.apply_theme()
|
||||
ignore(comp.compose_frame())
|
||||
ignore(open_windows(comp, socket_path, n))
|
||||
comp.handle_input(@nested.InputEvent::Key(125U, true), 1U)
|
||||
comp.handle_input(@nested.InputEvent::Key(125U, false), 2U)
|
||||
ov_settle(comp)
|
||||
// Hover the first window to show the highlight and close button.
|
||||
let (_, r) = comp.overview_places()[0]
|
||||
comp.handle_input(@nested.InputEvent::PointerMove((r.x + r.w / 2).to_double(), (r.y + r.h / 2).to_double()), 3U)
|
||||
let px = comp.compose_frame()
|
||||
ignore(@sys.write_file_bytes("_build/overview_" + n.to_string() + (if dark { "_dark" } else { "_light" }) + ".png", @renderer.encode_png(px)))
|
||||
}
|
||||
|
||||
///|
|
||||
test "overview screenshots: 1, 4 and 9 windows, dark and light" {
|
||||
for n in [1, 4, 9] {
|
||||
overview_shot(n, true)
|
||||
overview_shot(n, false)
|
||||
}
|
||||
}
|
||||
|
||||
///|
|
||||
test "no overview while the Interface Explorer inspects the launcher" {
|
||||
let comp = new_comp("ov-inspect")
|
||||
|
||||
Reference in new issue
Block a user