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
@@ -14,8 +14,7 @@
|
||||
///| Modules loaded into a fresh panel, in order. The dock (pinned and running apps, the task
|
||||
/// manager) stretches, so what follows it packs right.
|
||||
let default_panel : Array[String] = [
|
||||
"launcher", "inspector", "layout", "dock", "moon-disc", "network", "clock-digital", "screenshot",
|
||||
"session-settings",
|
||||
"launcher", "inspector", "layout", "dock", "network", "clock-digital", "screenshot", "session-settings",
|
||||
]
|
||||
|
||||
///| A fresh panel's modules: the defaults, plus the battery before the clock on a machine that
|
||||
@@ -334,6 +333,9 @@ fn migrate_panel(entries : Array[String]) -> Array[String] {
|
||||
if !has_settings && !out.contains("session-settings") {
|
||||
out.push("session-settings")
|
||||
}
|
||||
} else if e == "moon-disc" {
|
||||
// The moon phase disc never had source in the tree: a saved panel drops it.
|
||||
continue
|
||||
} else if e == "logout" {
|
||||
if !has_launcher && !out.contains("launcher") {
|
||||
out.push("launcher")
|
||||
@@ -353,6 +355,11 @@ test "a saved panel's wallpaper button becomes the settings module" {
|
||||
assert_eq(migrate_panel(["clock"]), ["clock"])
|
||||
}
|
||||
|
||||
///|
|
||||
test "a saved panel drops the moon-disc module, which has no source" {
|
||||
assert_eq(migrate_panel(["launcher", "moon-disc", "clock-digital"]), ["launcher", "clock-digital"])
|
||||
}
|
||||
|
||||
///|
|
||||
test "a saved panel's task list and dock become one dock, in the task list's place" {
|
||||
assert_eq(migrate_panel(["launcher", "tasks", "clock-digital", "dock"]), ["launcher", "dock", "clock-digital"])
|
||||
|
||||
Reference in new issue
Block a user