photocraft/crates/engine/tests
bfenty 83cfc3d9ef
fix(algo): Path Blur clamps per-path speeds (#708) (#840)
* fix(algo): Path Blur clamps per-path speeds (#708)

filter.blurGallery.pathBlur clamps the scalar speed to 0..500, but
each entry of the documented paths array was deserialized without any
clamp. The halo takes the maximum speed and computes
Radius(v.max(0.0).ceil() as i32 + 1): a large finite speed saturates
the float-to-int cast to i32::MAX and the + 1 overflows, so the command
dies in a caught panic (and wraps to a negative halo with overflow
checks off).

Clamp each entry speed to the same 0..500 the scalar path uses, right
where the params are built.

* Path Blur test: drop an unused before-sample (a flat background can't change under blur)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Brandon Fenty <bfenty@users.noreply.github.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:06:10 -04:00
..
brush_smoothing.rs Painting: right-click opens the brush picker (or erases), real Smoothing, eraser-on-Background tests (#86) 2026-10-04 23:31:17 -04:00
camera_raw_noise_clamp.rs fix(engine): Camera Raw clamps the noise amounts to their range (#707) (#839) 2026-10-07 20:24:42 -04:00
eraser_locked.rs Eraser on locked layers: no lock-out from the simple lock button; Stroke Path erases to the background colour (#76) (#229) (#229) 2026-10-05 11:26:06 -04:00
gallery_colours.rs fix(algo): gallery colour injection covers Colored Pencil and Neon Glow (#709) (#805) 2026-10-07 14:45:59 -07:00
gauss_small_sigma.rs fix(algo): blur small sigmas instead of silently no-oping (#706) (#783) 2026-10-07 14:45:54 -07:00
guide_layout_limit.rs fix(engine): view.newGuideLayout rejects absurd column/row counts (#704) (#797) 2026-10-07 14:47:42 -07:00
hdr_gamma_direction.rs rustfmt crates/engine/tests/hdr_gamma_direction.rs (Format red on main since #801) (#842) 2026-10-07 18:09:41 -04:00
keyboard_shortcut_bulk.rs fix(engine): keyboard shortcut bulk set reports in-call clashes (#719) (#799) 2026-10-07 14:46:08 -07:00
panic_hunt.rs Format: adopt the craft-family rustfmt.toml and format the workspace 2026-10-04 11:31:17 -04:00
path_blur_speed_clamp.rs fix(algo): Path Blur clamps per-path speeds (#708) (#840) 2026-10-07 21:06:10 -04:00
photoshop_oracles.rs Smart Objects and Smart Filters survive PSD save and open (#288) (#288) 2026-10-06 07:46:37 -04:00
prefs_usage.rs Fix preference usage scanning on CRLF checkouts (#331) (#331) 2026-10-06 10:46:21 -04:00
rendering_preferences.rs Add rendering modes and CPU fallback recovery (#434) 2026-10-07 06:11:06 -04:00
smart_psd.rs Camera Raw: read and write settings as a live PSD Smart Filter (part of #215) (#459) 2026-10-07 17:59:16 -04:00
text_gamma.rs Fix flaky canvas_geom undo test: isolate the text-gamma test in its own binary (#135) 2026-10-05 01:36:37 -04:00
unicode_colors.rs Colours: handle non-hex Unicode values without an internal error (#261) (#261) 2026-10-05 18:14:20 -04:00