The three whole-app Levels/Curves tests ran the colour mode x bit depth
matrix that the engine's tone_target_picker tests already cover without
the app. They now run every dialog and target on an RGB document and the
grayscale, CMYK and Lab documents once each, where adjust_dialog::pick
branches; every selector form still runs for a layer mask and a filter
mask. A new engine test covers the Smart Filter mask picker in every mode,
depth and mask state, the one gray target the engine did not test yet.
Whole-app runs: 60 -> 25 (228 on main before #15637).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The three whole-app tests in tone_targets.rs looped over every colour mode x bit depth
pairing. The planes they edit are single-channel gray in every mode, so each mode and each
depth once covers the same code; the full cross product pushed one test past nextest's
600 s limit on Windows. The address resolution keeps all three selector forms on one pair.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
`cargo test -p photocraft-ui-egui` failed to compile because egui's serde feature and toml's
display feature came only from other workspace crates. Also drops the stale allowlist note in
AUTO-219-8 (the panel-commands allowlist is empty).
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.
Prevent ui requests from falling through to engine defaults on WASM. Preserve native controls, ordinary menu opening and plain filter parameters. Exercise browser handlers through the same dispatch core in native tests with document/history and workspace preservation assertions.
Apply only the edit_cmds/tests.rs subset of FredApps commit 955cf65ae2 (#15596). The ActionList subset was integrated separately. Merged #9833 releases a copied group when its external clipping base is omitted; retain both populated and empty destination-board assertions.
Source independently reviewed; original #10538 author accepted this correction. No production behavior or test suppression.
Apply only the actions_edit_cmds.rs portion of FredApps commit 955cf65ae2 (PR #15596). Preserve predicate/replay/layer assertions; unrelated clipping expectation change is not included.
The Remove-channel-target control-pointer test now asserts the injected press was delivered rather than withdrawn, and its assertion messages include the active layer, text-edit state and job state.
Fixes#7238.
`replayable` now also accepts `actions.conditional`, so a Conditional is recorded with its predicate instead of the branch that happened to play (or nothing). Playback then evaluates the condition again on the current document.
* Build the craft UI framework at craft-libs' optimization levels in test builds
The test profile compiled the craft facade and its framework crates at the
opt-level 2 of package."*", serialised in front of every PhotoCraft crate
that uses craft. Build them at 0 (1 for the crates with per-frame or per-pixel
code), as craft-libs does. Test-profile build on 8 cores: 34m53s -> 21m32s.
* Build the framework at opt-level 1, not 0, in test builds
At opt-level 0 the framework's stack frames overflowed the 2 MiB test-thread
stack in ten more photocraft-ui-egui tests on the Windows runner
(0xc00000fd). Level 1 still shares generic instantiations across crates.
* Build the framework's panels, tools and services at opt-level 0 in test builds
At opt-level 1 throughout, the Windows unit leg still built for 67 minutes.
The runtime every frame passes through keeps level 1, so its stack frames
stay small; the panels, tools and services around it, most of the
framework's compile time, build at 0.
* Wrap the test-profile comment
PhotocraftApp::new and with_context return Box<Self>, and the test harness
holds the Box (a forwarding eframe::App impl for Box<PhotocraftApp>). The 85 KiB
app was held by value in the test, its helper, build_app, build_eframe and
from_builder, all under the first egui pass. The 11 overflowing tests need
0.34-0.78 MiB of stack instead of 1.7-2.0 MiB (mask_click 2032 -> 748 KiB,
navigator_gpu 1956 -> 760, native_tests 1848 -> 748, keys_run 1708 -> 776).
The 8 MiB test thread for the Type Mask click test is removed.
a_type_mask_click_on_text_edits_that_layer_as_the_type_tool_does runs
three apps through two full app frames each. In the unoptimized Windows
build it overflows the 2 MiB stack of a test thread, which aborts the
whole test process (STATUS_STACK_OVERFLOW), so the Windows unit leg
fails. The test body now runs on its own thread with an 8 MiB stack,
and a panic in it is passed on to the test.