mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-10 18:13:35 +00:00
Actions: test that Wave's generators above 999 load clamped (FredApps review)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
898176f7f7
commit
244082fb2c
@@ -3258,6 +3258,14 @@ fn distort_filter_steps_load_clamp_play_and_save_back() {
|
||||
assert_eq!(one_step(distort("Wave", desc("null").with("NmbG", D::Integer(0)))).1["generators"], 1);
|
||||
}
|
||||
|
||||
/// Photoshop clamps Wave's number of generators to 1..999 when it plays, so a recorded count far
|
||||
/// above it loads as 999, as the existing 0 loads as 1 (#10605).
|
||||
#[test]
|
||||
fn wave_generators_above_photoshops_limit_load_clamped() {
|
||||
let p = one_step(distort("Wave", desc("null").with("NmbG", D::Integer(1_000_000)))).1;
|
||||
assert_eq!(p["generators"], 999, "{p}");
|
||||
}
|
||||
|
||||
/// What the commands cannot play keeps the Photoshop step: an unknown enumeration value, a Wave
|
||||
/// scaled below 100 % (the command has no scale), or a key the event does not have (#10605).
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user