mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
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:
1 parent
b464a334ca
commit
99b23f7007
1 file changed
+4
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user