The handle test presses each handle once per case, at the centre or in its
grab area by turns, with a two-move drag; the caret-font test keeps one
caret-at-start case and one caret-at-end case per text.
The paragraph-handle, click, transform-scale and caret-font tests crossed
every axis; each now runs one case per value of its widest axis, pairwise
over the rest, keeping the ends of the range in points.
Keep Color Replacement tolerance dispatch from main alongside Magic Eraser opacity. Reconcile both isolation fixtures against the combined supported tool behavior without dropping checks.
Preserve the Channel Mixer rounding regression alongside main Color Balance coverage. Source and whitespace checks passed; hosted CI will validate the integrated tree.
The real-file corpus tests the Linux gate runs took up to 394 s each (the psd-tools mutation
sweep), 780 test-s together. Each now walks a fixed sample chosen for coverage (photocraft-testkit
`corpus`: every colour mode and depth, PSD and PSB, the block kinds outside the large files, each
oracle kind, smart objects, vector blocks, type) and stays under a second. PHOTOCRAFT_FULL_SWEEP=1,
the switch the testkit sweeps already read, takes every file; the nightly run sets it.
- Oracles keep floors for the sample next to the full floors.
- The mutation sweep cuts and corrupts each sampled file 12 times instead of 31.
- The layered TIFF test takes the psd-tools sample.
- The smart-object test imports only files with a placed-layer block (full sweep: 32 s to 5 s).
- The blend-mode tests import once and render only the compared cells.
- The 16.8 MP spot-channel file runs in full sweeps only; the generated files check the same reading.
- The #1606 special-shapes test is the affinity table's row for that file plus its warning check.
Part of #15711
A given-value edit no longer reruns versioned regions (craft-libs#2469), so every input a settled
region shows must be in its version. The options bar holds every tool option (keys, the canvas
menu and the task bars write them), its commit cells and lasso hint, and the caret of the type
being edited; Character, Paragraph, Properties and Glyphs hold that caret; Info holds the Sample
Size and the crop frame size; Layers holds the Move tool's canvas rollover; every version holds
the mask, filter mask and path targets. A command a key fires counts as a command run, as one
from a menu does.
The reference application refuses a Quick Selection click or drag there
with an alert and selects nothing. select.quick now returns its words,
and the canvas shows them in the OK alert without running the command.
Multichannel and Duotone weren't measured and keep selecting.
A rectangle that finds nothing opens the reference application's "Couldn't find an object to select" alert with "Don't show again" instead of a status-bar hint. Over an area where the sampled layer has no pixels it still records an "Object Selection" History state (select.object "recordEmptyArea"); scripts keep the #5246 error. A click that finds nothing shows no message.
The dialog now opens with Chromatic Aberration and Vignette off and
File Type PSD, and File Type offers JPG, PNG, PSD and TIFF, as the
reference application does. The command's own defaults for scripts and
the CLI are unchanged.
Group order, captions, the two Correction Options columns, the Edge entries
and their stored values, no Alt Reset, Escape cancels, Browse... and
Choose... pick the folders, a field set to null shows and sends its default,
and OK runs the command with the params the generic form sent. The harness
helpers are pub(super) for the other dialog items of #13978.
File > Automate > Lens Correction opened the generic form, which lists the
params A to Z (Auto scale, Correct c a, ... Profile). The dialog now draws
the reference groups Source Files, Destination Folder, Lens Correction
Profile and Correction Options, the last in two columns, with the reference
captions and the Edge entries Edge Extension, Transparency, Black Color,
White Color. Holding Alt leaves Cancel as Cancel. The command's params and
its defaults in the menu arm are unchanged; a missing or mistyped field is
set to its default before drawing, so the dialog shows what OK sends.
The dialog was the generic form with one From dropdown (a single mode or Any)
and raw ids. It now ticks any set of the eight source modes, in two columns
with All and None, and lists the targets as Grayscale, RGB Color, CMYK Color
and Lab Color. OK sends the ticked modes as the command's from list.
The crop task bar's preset list and Straighten, the tool's keys and a frame drag change what the
options bar's Crop members show without a command. A given-value edit no longer reruns versioned
regions (craft-libs#2469), so the bar replayed the old preset after a pick in the task bar.
`a_mask_takes_no_other_character_settings_from_the_layer` is red without this
change - its last line names the font, style and size the takeover moves over -
but its doc comment called it a guard test that passes before and after. The
comment now says which it is; the PR text names the five tests that really are
guards.
`mask_style_from_active_layer` built the size with `json!` and only then asked
`finite_style_value` about it. `json!` turns a non-finite f32 into `null` and
`finite_style_value` accepts `null`, so `type.create` received `"size": null`,
its `check_size_tracking` refused the whole parameter set, and the
`if let Ok(v)` in `create_text` passed the error over: a Horizontal Type Mask
click over a document whose active text layer carries a NaN or an infinite size
did nothing at all.
Gate the f32 product with `is_finite()` and only then make it JSON, so such a
layer keeps the tool's own size and the mask still starts. Pinned by
`a_non_finite_layer_size_keeps_the_tool_size`, red before this commit
("a new mask session at (60.0, 300.0)").
Keep the guides transformed by the exact turn when Image Rotation requests them. Crop and Ruler Straighten still clear guides. Check guide positions, colours and undo through the rotation commands.
A Type Mask click built its working text layer from the tool options
alone, so an 80 pt text layer active on the canvas made a 48 pt mask.
The measured case now reads the active layer's font, style and size as
the options bar shows them; the vertical mask, a paragraph drag and a
non-text active layer keep today's tool options.
Refs #12077
Hiding one tool of a slot leaves the slot on the rail, so the toolbar case hides
both tools of the first slot. A build without the catalogs shows English only, so
the language case runs only where they are embedded. The maximize case is gone:
the test harness draws no caption buttons.
A Type Mask keeps its text on a hidden working layer, and type_transform's
frame() refused invisible layers, so holding Ctrl over a mask edit showed no
box and Ctrl+drag did nothing. frame() now lets a mask session through while
the modifier is held; the box's session applies its result as one type.edit,
which the commit turns into the moved selection. Invisible ordinary layers
keep the refusal, and without the modifier the mask session keeps today's
behaviour: no frame, so no box and no move reach either.
Red first: 2 new tests failed before the fix; all 4 pass with it.