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
@@ -426,65 +426,3 @@ test "editor: a region screenshot opens at full size when it fits" {
|
||||
assert_eq((v.w, v.h), (400, 300))
|
||||
tap(comp, 1U, 30U)
|
||||
}
|
||||
|
||||
///| Headless pictures of the editor for the docs: written when CHANDRA_EDITOR_SHOTS names a folder.
|
||||
test "editor: headless screenshots" {
|
||||
let out = @sys.getenv("CHANDRA_EDITOR_SHOTS")
|
||||
if out.length() == 0 {
|
||||
return
|
||||
}
|
||||
let socket_path = "/tmp/wayland-moon-edshots-" + @sys.getpid().to_string() + ".sock"
|
||||
let comp = @host.ChandraCompositor::new(socket_path, @scene.ThemeTokens::moon_night(), 1280, 720).unwrap()
|
||||
comp.shot_dir = "/tmp/chandra-edshots-" + @sys.getpid().to_string()
|
||||
ignore(open_and_configure_client(comp, socket_path, "Notes", "notes"))
|
||||
ignore(open_and_configure_client(comp, socket_path, "Terminal", "term"))
|
||||
ignore(comp.compose_frame())
|
||||
key(comp, 99U, true, 1U)
|
||||
key(comp, 99U, false, 2U)
|
||||
ignore(comp.compose_frame())
|
||||
// An arrow, a rectangle, a blur, a redaction, a highlight, text and two markers.
|
||||
tap(comp, 30U, 10U)
|
||||
edit_drag(comp, 200, 560, 420, 380, 20U)
|
||||
tap(comp, 19U, 30U)
|
||||
tap(comp, 6U, 31U) // blue
|
||||
edit_drag(comp, 430, 200, 760, 360, 40U)
|
||||
tap(comp, 48U, 50U)
|
||||
edit_drag(comp, 750, 628, 1275, 674, 60U) // the notification
|
||||
tap(comp, 32U, 70U)
|
||||
tap(comp, 8U, 71U) // black
|
||||
edit_drag(comp, 895, 12, 1025, 42, 80U) // a title
|
||||
tap(comp, 45U, 85U)
|
||||
edit_drag(comp, 930, 686, 1060, 719, 86U) // the clock
|
||||
tap(comp, 35U, 90U)
|
||||
tap(comp, 4U, 91U) // yellow
|
||||
let (h0, h1) = on_screen(comp, 436, 590)
|
||||
let (h2, h3) = on_screen(comp, 640, 590)
|
||||
drag(comp, h0, h1, h2, h3, 100U)
|
||||
tap(comp, 49U, 110U)
|
||||
tap(comp, 2U, 111U) // red
|
||||
let (m0, m1) = on_screen(comp, 450, 190)
|
||||
click_at(comp, m0, m1, 120U)
|
||||
let (m2, m3) = on_screen(comp, 810, 110)
|
||||
click_at(comp, m2, m3, 130U)
|
||||
tap(comp, 20U, 140U)
|
||||
tap(comp, 9U, 141U) // white
|
||||
let (t0, t1) = on_screen(comp, 440, 590)
|
||||
click_at(comp, t0, t1, 150U)
|
||||
for c in [20U, 35U, 18U, 57U, 48U, 22U, 34U, 57U, 23U, 31U, 57U, 35U, 18U, 19U, 18U] {
|
||||
tap(comp, c, 160U)
|
||||
}
|
||||
tap(comp, 28U, 170U)
|
||||
// A crop being drawn.
|
||||
tap(comp, 46U, 180U)
|
||||
let (c0, c1) = on_screen(comp, 60, 60)
|
||||
let (c2, c3) = on_screen(comp, 1220, 690)
|
||||
comp.handle_input(@nested.InputEvent::PointerMove(c0.to_double(), c1.to_double()), 190U)
|
||||
comp.handle_input(@nested.InputEvent::PointerButton(272U, true), 191U)
|
||||
comp.handle_input(@nested.InputEvent::PointerMove(c2.to_double(), c3.to_double()), 192U)
|
||||
let frame = comp.compose_frame()
|
||||
ignore(@sys.mkdir_p(out))
|
||||
assert_eq(@sys.write_file_bytes(out + "/screenshot-editor.png", @renderer.encode_png_compressed(frame)), 0)
|
||||
comp.handle_input(@nested.InputEvent::PointerButton(272U, false), 193U)
|
||||
let saved = comp.screenshot_editor().unwrap().export()
|
||||
assert_eq(@sys.write_file_bytes(out + "/screenshot-editor-saved.png", @renderer.encode_png_compressed(saved)), 0)
|
||||
}
|
||||
Reference in new issue
Block a user