Menus: assert Offset's submenu path in the Color to Alpha test

This commit is contained in:
Nikolai Nyegaard committed 2026-11-06 18:19:19 +01:00
1 parent 6ee1991cde
commit f7aea09940
1 file changed
+1
+1
View File
@@ -123,6 +123,7 @@ fn color_to_alpha_sits_in_filter_other_after_offset() {
let (offset, c2a) = (at("filter.other.offset"), at("filter.other.colorToAlpha"));
assert_eq!(c2a, offset + 1);
assert_eq!(items[c2a].path, items[offset].path);
assert_eq!(items[offset].path, ["Filter", "Other"]);
assert_eq!(items[c2a].label, "Color to Alpha…");
assert!(items[c2a].enabled, "the Background becomes a layer when the filter runs");
let others: Vec<_> = items.iter().filter(|i| i.path.first().is_some_and(|p| p == "Filter") && i.path.len() == 2).map(|i| &i.path[1]).collect();