mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 01:18:43 +00:00
Menus: assert Offset's submenu path in the Color to Alpha test
This commit is contained in:
1 parent
6ee1991cde
commit
f7aea09940
1 file changed
+1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user