* test(raw): pin pre-cutover Camera Raw SmartFilter and filter baseline (#587)
* test(format): avoid json! macro recursion limit in camera_raw_roundtrip (#587)
* test(format): wrap SmartSource::Embedded bytes in Arc (#587)
* test(engine): use select.deselect in camera_raw_baseline_pin (#587)
* test(raw): capture legacy RAW Open and Camera Raw Filter pixel baselines (#587)
* test(raw): lock Camera Raw Filter baseline pixels and capture RAW Open values (#587)
* test(io): lock legacy RAW Open baseline pixels (#587)
* test(io): capture RAW Open camera WB legacy baseline pixels (#587)
* test(io): lock RAW Open camera WB legacy baseline pixels (#587)
The modules that assert on the scratch pool, spill configuration, simulated memory, global caches or compositor settings move to tests/global_state, where one lock makes them take turns. test-binaries lists it with the reason.
Each crate's top-level tests/*.rs files become modules of tests/it/main.rs, and a new xtask check (test-binaries) refuses a new single-file test binary.
Replaces the ui-egui window test, whose order depended on wall time, with an engine test:
the job's result is applied only by poll_jobs/wait_job on the session's thread, so a
select_layer after start always comes first.
Resolves the status-line conflicts in docs/gaps.md and
docs/target-app-parity.md (both sides kept) and the module list in
crates/engine/tests/it/main.rs.
Co-Authored-By: arjen <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
#11528 measures Photoshop 27.11 against PhotoCraft on an opaque black/white
step at radius 2.3 and finds up to 8 of 255 levels between them, at both
depths. Our row is exactly what a Gaussian sampled at whole pixels with
sigma = radius and a 3-sigma window produces (deviation 0 against a plain
model of that kernel), so nothing in the pipeline rounds or clamps wrong: the
gap is the radius-to-blur mapping, and no mapping is determinable from the
published numbers - Photoshop's own three radii imply factors of about 0.88,
1.08 and 0.97, while box-pass and truncation families fit worse than today's
kernel does.
So pin the behaviour instead, with a ratchet: the 8-bit and 16-bit rows across
the edge, the distance to Photoshop's measured rows (may shrink, may not
grow), and that a GsnB action replay renders the same bytes as the direct
command at both depths. A future mapping change then has to be a decision with
a number attached to it, not a silent edit of a kernel.
An adjustment layer's Make step now loads its `Nm `, `Md ` and `Grup`
keys as the command's `name`, `mode` and `clipToPrevious` params and saves
them back. An unreadable value keeps the step as an unsupported kept step;
`layer.newAdjustmentLayer.*` validates the new params like New Layer and
clips through the clip-group rules. Fixes the remainder of #8384.
Co-Authored-By: bommerts <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A straight Crop tool crop (image.crop with an explicit rectangle) of a
document whose only artboard covers the whole canvas now fits that board
to the new canvas and clears its size preset. Before, the board kept its
old size and hung past the cropped canvas.
Measured in the reference application: its Crop tool in an artboard
document edits the artboard ("Edit Artboard": the board takes the frame,
content stays where it is), so the visible result matches. Image > Crop
with a selection does nothing there, Image > Trim keeps the board's
size, and a turned crop is impossible with artboards.
Left out of the original PR: the fit on selection crops, Trim and turned
crops (they differ from the reference application), so crop_doc and
Export Layers to Files are unchanged; the printer-query commits
(superseded on main) and the shapes.rs hunk (already on main).
Co-Authored-By: durtyrobbin <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>