`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.
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.
The Print dialog now picks its printer through the shared print panel, which
replaces the chosen printer whenever a list it receives does not name it.
While another print holds the spooler, the dialog sent its cached (or empty)
list, so a saved printer that list did not name was replaced and its driver
settings went with the next print.
While the spooler is busy, a cached list without the chosen printer is no
longer sent: the chosen printer and its driver settings stay, and Print stays
unavailable until a fresh list arrives. A fresh list without the chosen
printer replaces it, and the replaced printer's driver settings are dropped.
Driver settings remembered without a printer (the system default) stay.
The saved-settings tests now read the chosen printer from the dialog's
settings and run on every platform.
The file dialog tests rebuilt a Save request's suggested path with
Path::join, which puts a backslash between the folder and the name on
Windows, while the expected paths use "/". The helper now joins with "/".
The histogram throttle test set the last count's time to 0, but each test
pass moves the context's clock on by one frame, so a run that took more
than 15 frames to settle was already past the 250 ms throttle. The test
now sets the time to the context's current time.
The theme rows all run app.theme, so the English-name map is keyed by id and params. The framework's theme submenu is laid out once in English to fill it.
PhotoCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (next branch): shell, dock and panels, hosted dialogs, keyboard, focus, IME and pointer routing, the canvas's view commands, themes and tokens. The engine, document model, file formats, commands and automation stay. PhotoCraft pins storytold/craft-libs next.
cfg!(test) only covers photocraft-text's own tests; every other crate's
test binaries link it as a normal dependency, so each nextest test
process started a background scan of the installed fonts (on Windows
also a reg.exe child for the UI locale) beside the GPU tests, and tests
silently depended on the machine's fonts. Skip it when NEXTEST is set,
as CI runs every test through nextest. Tests that want installed fonts
already build their own engine with TextEngine::with_system_fonts.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- cmyk_flatten_profile: synthesise the test profile once per process and
share one Arc, so CmykSpace's per-allocation cache builds the transforms
once; exact() reads both rows from one run (4 documents, not 8).
- camera_raw GPU tests: the 858x572 and 1600x900 comparisons run at one
depth each. The depth only changes the input quantization (8 and 16 bits
both develop with float = false) and every depth runs at 171x113 above.
- cols_timing is a benchmark without assertions: ignore it like its
siblings.
- compose: delete clipped_dissolve_is_binary_and_preserves_the_base_shape,
a byte-identical copy of clipped_dissolve_opacity_fill_is_binary_and_
preserves_base_shape (whose doc comment names both issues).
Part of #15376.
Co-Authored-By: Claude Opus 5.5 <[email protected]>