The moved-art assertion accepted a horizontal move as short as half the
release distance and never read the vertical position. The test now
turns snapping and Smart Guides off before the drag and checks that the
rectangle's corner moves by the document displacement between press
and release on both axes.
SCHEMA_PHRASES in the i18n tests lists the phrases the parameter schema's
wrong-type error uses for what a value must be, and untranslated_report
reports them as messages to translate. The list was a hand copy of
apischema's expected() and range_text(), and no test compared the two, so
a changed phrase there would leave the catalogs translating a phrase the
app no longer shows.
schema_phrases_hold_what_the_schema_error_says builds a wrong-type error
through ParamSchema::validate for a plain number, numbers with inclusive
and exclusive bounds with and without a unit, an integer with a minimum,
an enum and a list, puts the schema's own values back as placeholders,
and checks that each resulting phrase is in SCHEMA_PHRASES.
A panel opened from the Window menu, such as Learn or Image Trace, floats in
an OS window. craft-libs hid floating panel windows while the main window
showed any layer that takes keys, including the Contextual Task Bar over
selected art. The panel's window then hid and came back as art was selected, and while it was hidden the canvas still counted its
area as covered by a window. A Selection tool move released there was given
up, and the art went back to where the move started.
craft-libs main (storytold/craft-libs `2e9d498e`) hides floating panel windows
only under popup and modal layers. The craft-libs pin moves to craft-libs
main, `858bea9d`, with the egui revision that craft-libs pins (`861d60a6`).
The winit revision is unchanged.
A test opens Learn and Image Trace through their Window menu commands,
selects and moves a rectangle, and checks that each panel's OS window shows
on every frame and that the move ends where it was released.
Panel tests that could pass on an empty list, that only checked a control was
there, or that looped over every language or preset now check the result:
- Character, Glyphs and OpenType: the underline, kashida, size, Up/Down, glyph
form and Proportional Metrics checks compare the text each setting reaches
(for example "AB" underlined, then none) instead of `all()` over the runs,
which passed when a frame had no runs.
- Actions: the built-in actions play on a selection and each makes an undo
step, instead of only looking up their command ids.
- Color Wheel: Show Out-of-Gamut Colors is checked by what the wheel and the
box draw with it on and off. The test that loaded a profile and only checked
the box was shown is removed, and two copies of the junk-parameter test are
removed (the one in tests_color_wheel_vision.rs runs with and without a
document). The error-translation tests check German and Japanese instead of
every catalog.
- History and Paragraph: the name and Mojikumi checks use a few languages
instead of every catalog, and the Numbered List presets are checked by one
style instead of every number style.
- Graphic Styles, Stroke and Swatches: the rename, profile preview and row
menu checks count what they read before checking each item.
- Image Trace: the off-thread trace test waits on the trace's own channel
through a new test-only `trace_runs::finish_all`, instead of polling with a
sleep for up to 30 seconds.
- Artboard frame tests assert how many frames are drawn before checking
each one, so a canvas that draws no frames fails them.
- Find Font's refresh test checks the document's one family and the one
row it shows instead of checking every row of a list that may be empty.
- The freeform paint chip test also checks an opaque point and the chip's
size, and the holographic test checks the foil chip's size.
- The background wait tests (Quit, packaging and export made at once)
open the writer's gate when the UI thread starts waiting, through a
test-only hook in background::wait_until, instead of after a sleep.
Each asserts that the wait happened.
- Cancel Open waits for the file to be read before Cancel instead of
sleeping after it.
- The automation roots test checks that the open keeps the same roots.
- The brightness test reads the saved ids and old labels in place of a
round trip through its own table.
- Removed every_tool_cursors_hotspot_lies_inside_its_icon_box, which
every_tool_cursors_hotspot_is_on_its_glyph covers, and
message_dump_lists_the_reported_messages and the schema phrase loop,
which held by construction.
- dump_source_strings is ignored with a reason; the translator commands
in docs/development.md pass --ignored.
In the Classic look, the docked Tools card at the window edge drew a
rounded dark bar over a body with square top corners, so the body's
corners showed past the bar and the card's top corners did not look
rounded. craft-libs#4723 paints the bar with the card's corner radius
and starts the body under the bar.
craft-libs moves to 823f0d1a, the head of #4723, which is the current
pin a5669ed2 plus that fix; egui and winit stay at the revs craft-libs
pins. craft-web-api and xtask pdf-deps move with the other craft-libs
crates.
the_docked_tools_card_keeps_its_rounded_top_corners checks the Classic
and Modern looks at UI Scaling 100% and 200%: every opaque surface that
reaches a top corner of the Tools card is rounded there at least as much
as the card's foot.
A scrubbed field or a canvas drag moves the revision while the sections
are not measured. When the release itself left the revision unchanged,
the panel skipped the measurement and kept the sizes from before the
drag. The edit now stays pending until a frame runs without a drag or
an open undo group.
The Properties panel measured all of its sections before showing them
whenever the document's revision changed. A Selection tool drag changes
the revision on every pointer move, so each frame of the drag ran the
whole panel twice. On a blank document with one rectangle, a drag frame
ran 396 components where a hover frame ran 170.
The revision is now kept apart from the selection, tool and isolation
key. While a canvas drag or a scrubbed field is in progress, a new
revision alone does not measure the sections; the edit is measured once
when the drag ends. A drag frame now runs 168 components and each frame
still takes one pass.
main's CI fails at test-lint since #8808 merged: keys_held_during_a_touchpad_gesture_count_until_it_ends is compiled only on macOS, which no CI test leg runs. egui reports a touchpad gesture's phases only on macOS; on Windows and Linux it reads a touchpad's Ctrl+scroll as a pinch, so the test cannot run there. The allow comment names that reason.