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
@@ -218,36 +218,3 @@ test "recent emoji and the skin tone are kept in state.edn" {
|
||||
assert_eq(q.items().map(i => i.text), ["🍕", "👍🏽"])
|
||||
}
|
||||
}
|
||||
|
||||
///| CHANDRA_EMOJI_SHOTS=<dir>: pictures of the picker over a window (docs, the thread).
|
||||
test "screenshots of the picker" {
|
||||
let dir = @sys.getenv("CHANDRA_EMOJI_SHOTS")
|
||||
if dir.length() > 0 {
|
||||
ignore(@sys.mkdir_p(dir))
|
||||
let socket_path = "/tmp/wayland-moon-emojishots-" + @sys.getpid().to_string() + ".sock"
|
||||
let comp = @host.ChandraCompositor::new(socket_path, @scene.ThemeTokens::moon_night(), 1280, 720).unwrap()
|
||||
let (a, shm_a, surf_a, xdg_a, _, _) = open_and_configure_client(comp, socket_path, "Notes", "notes")
|
||||
commit_shm_frame(comp, a, shm_a, surf_a, xdg_a, 1UL)
|
||||
let (ti, _) = text_input_for(comp, a)
|
||||
text_input_state(comp, a, ti, true, 120, 90, 18)
|
||||
let shot = fn(name : String) raise {
|
||||
let frame = comp.compose_frame()
|
||||
assert_eq(@sys.write_file_bytes(dir + "/" + name, @renderer.encode_png_compressed(frame)), 0)
|
||||
}
|
||||
press_super_period(comp, 10U)
|
||||
shot("picker-smileys.png")
|
||||
type_keys(comp, [35U, 18U, 30U, 19U, 20U], 20U) // h e a r t
|
||||
shot("picker-search.png")
|
||||
type_keys(comp, [14U, 14U, 14U, 14U, 14U, 15U], 40U) // clear, then Tab: People
|
||||
comp.handle_input(@nested.InputEvent::Modifiers(4U, 0U, 0U, 0U), 60U)
|
||||
type_keys(comp, [106U, 106U, 106U], 61U) // Ctrl+Right x3: medium skin tone
|
||||
comp.handle_input(@nested.InputEvent::Modifiers(0U, 0U, 0U, 0U), 70U)
|
||||
type_keys(comp, [106U, 108U], 71U)
|
||||
shot("picker-people-tone.png")
|
||||
// The clipboard notice: the app turns its text field off, then an emoji is chosen.
|
||||
text_input_state(comp, a, ti, false, 0, 0, 0)
|
||||
type_keys(comp, [28U], 80U)
|
||||
shot("picker-copied-notice.png")
|
||||
comp.close()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user