PSD smart filters test: compare Wave's settings, not Photoshop's descriptor name

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
abc2cbandClaude Opus 5.5 committed 2026-10-13 22:15:35 +03:00
1 parent b464a334ca
commit 99b23f7007
1 file changed
+4 -1
+4 -1
View File
@@ -1059,7 +1059,10 @@ mod tests {
"undefinedAreas": "wrap", "seed": 1270346})
)
);
assert_eq!(item_for_filter(&f).unwrap().get("Fltr"), Some(&Value::Descriptor(unscaled)));
match item_for_filter(&f).unwrap().get("Fltr") {
Some(Value::Descriptor(ours)) => assert_eq!((&ours.class_id, &ours.items), (&unscaled.class_id, &unscaled.items)),
other => panic!("wave: no Fltr ({other:?})"),
}
}
/// Invert on a smart object: Photoshop stores no `Fltr`, but `hasoptions` and its filter id.