Moves every craft-libs pin from a6b9d9c986 to the current next head. The
lockfile adds craft-cloud-ui (now a craft-ui dependency) and
craft-theme-editor. No PhotoCraft code uses an item the update removes or
changes: Dialog::side_buttons, IconSpec::set, ThemeScope::mode, the
drag::start and dock-target signatures, ui-canvas readout/hud and the
colour-warning types are not used here, and ColorPopover::picker's
closure (now Fn) captures nothing. The egui fork rev is unchanged.
caret_font_choices_style_only_subsequent_typing_including_ime started the whole
app for each font, text and caret. It now keeps one app with the fixture's
document: Undo takes each case's text layer back before the next case makes its
own, so every case starts from the same document. The fixture builds the same
app and layer through the two steps the test shares. Cases and assertions are
kept.
The grayscale picker, filter mask and addressed mask tests started an app for
every case. Each now keeps one canvas harness and opens each case's fixture
document in it as a new document, after closing the last case's and clearing
what a case leaves: the actions, the Layers panel's mask targets and the tone
dialogs' last-used settings. Cases and assertions are kept.
Harness::event steps one frame per queued event, so a tap (modifiers, press,
release, modifiers) plus its three steps ran six whole-app frames per shortcut.
The dispatch test now queues the four events into one frame's input and runs the
two frames the runtime and the app need to take the key and run its command.
Every shortcut, place and assertion stays.
every_adjustment_layer_edits_through_properties started the whole app for each
of 16 kinds on each of 6 documents. It now starts one app per document and runs
Undo back to the document before adding the next kind's layer, so every kind
still meets the new document with its two tones. Cases and assertions are kept.
The command gate asks is_live for every command a pass resolves. The engine
catalogue, the shell's commands and the prefix tests answer for most live ids;
the linear scans (bridged rows, view and workspace commands, which builds a
CommandRef) now run last. Same answers.
The toolbar, its measure and the dock's grid each resolved the stored layout
(tool_layout, layout_sections, Tool::from_name per name) several times a frame.
The slots depend only on the preferences' toolbar layout, so the app keeps them
with the PrefsStore revision they were built at.
The gpu group (at most 4 at a time) was chosen by name: every ui-egui
integration test and every test whose path contained canvas, gpu, mip or
type_tool. On main's gate that put about 680 ui-egui tests that never
open a device on four slots.
The group is now photocraft-gpu plus every test in a module named
`gpu_tests` or `<name>_gpu_tests`:
- ui-egui integration tests that draw on a device move to
tests/it/gpu_tests/; mixed files and unit tests keep their GPU tests in
a nested `gpu_tests` module or a `*_gpu_tests` file.
- photocraft-automation's GPU backend tests are `gpu_backend::gpu_tests`.
- batch_export_options checks menus and exported bytes, so it runs on the
CPU canvas instead of a GPU harness.
No test assertion changes. The Windows priority list follows the moved
test names.
- parity.rs: the two paging tests use a 660x580 document (3x3 pages, one interior cell)
instead of 1100x900, and eviction runs 2 rounds; the residency tests that share the large
document keep it. 16-bit runs only where the GPU reads the 16-bit upload (one effect stack,
Dissolve and pattern cases). The disjoint-damage test paints 2 distinct series of 8 strokes
and isolates its layers so strokes capture checkpoints, which makes its bytes assert able to
fail. many_layers_submit_inside_one_chunk_paged is removed: its stats equal the whole test's.
- Coarse preview: drop an unchecked full-resolution solve; colour tests reuse solves and use
Extend where Move only adds an unread fill.
- Crop fill eligibility is a unit test on additional_target; the integration test keeps 3 cases.
- PSD write oracle: one run with a passing and a failing case instead of two runs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The picker tests drove the whole window (panels, menus, bars) for every case
of their mode, depth and target matrix, and zoomed with eight Zoom In rounds.
The canvas pass and the dialogs are what sampling goes through; the harness
draws those, sets the zoom once, and no longer sets up the app's context a
second time.
The toolbar resolves its whole layout through Tool::from_name several times a
frame, and from_name formatted and lowercased every tool's names per lookup
(about 12% of a whole-app frame). The command gate asks screen_mode_row for
every command a pass resolves, which built a CommandRef for every runtime
command row (about 5%).
An unknown id's disabled reason ranks every command id for "did you mean";
is_enabled_with dropped that string. The menu model asks it for every row
that is not an engine command.
Same code paths and assertions, fewer pixels, harnesses and frames:
- every_adjustment_layer_edits_through_properties: one app per mode and
depth instead of one per kind (all 16 kinds still run in all 6
settings), three drag moves and two frames after each new layer.
- canvas_mips_preserve_opaque_pixels_and_partial_updates: 767 x 431
instead of 1791 x 1083; still odd sides and two partially redrawn
mip levels.
- blend_hover_* (4 of 5): the 1024 x 768 fixture and every view halved;
the background-redraw case keeps its size.
- every_paragraph_box_handle_resizes_the_box_with_snapping_on: zooms
25 % and 200 % only.
- the wheel tests: 3 and 4 frames per notch instead of 30 and 40; the
view is already settled then.
- Shift-letter cycle: two frames per press instead of three.
- guide and Cmd stand-in tables: drop rows whose tool shares a family
and pointer kind with a row that stays.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run each variant once where the loops reached the same code, and reuse one
app harness instead of building one per case:
- checker_canvas pixel grid: 8-bit on every canvas and scale, plus 16-bit and
32-bit once each on the GPU canvas (the grid reads the same f32 composite at
every depth; depth only changes the GPU texture).
- live_stroke_canvas: one harness for the raw pointer and camera tests; camera
navigation runs the Brush only (no tool branch before a press); the committed
stroke runs every zoom once with every smoothing amount, plus the special
cases, split over the three parts so every case runs (the step was still 4
after part 3 was removed, so four cases never ran).
- adjust_preview_gpu clipped target: each kind once per mode, cycling the
depth/selection pairs; the full matrix stays in the unclipped test.
- drag_preview_canvas marquee: one grey document that checks both ant colours,
one harness for both scales.
- arbitrary_rotation_preview: drop -45 degrees (same preview size as 45).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.