graph_column_params_are_checked_and_designs_too_big_are_drawn_plain checked
only the plain column's height, so an ellipse of the same height passed. It
now also checks that the column's path is the rectangle of its bounds.
The deadline test and the kept-files test polled the search's progress
with a 2 ms sleep until the walker was blocked reading a file, which
test-lint rejects. The blocking visitors now send on a channel as their
read begins, and the tests wait on that channel instead.
Engine tests in crates/engine/src/tests that asserted something of every
item in a list passed when the list was empty. They now pin the count or
the exact value:
- keyguide, menucmds, recolor: the guide positions, the smart
punctuation counts and the theme picker's colors are compared whole.
- overprint, script_text, stylepanel, textedit, typearea: the text is
checked first, and character runs must exist; the Graphic Styles test
checks the red fill itself, not only some fill.
- package, pattern, perspgrid, pixelalign, recolor, swatchcmds,
symbollib, xform: the links, stored graph paints, corners, anchors,
map rows, group colors, gradient stops and symbol sizes are counted.
- rastersettings: the white-background image has the size of the clear
one.
- textcombos: both paragraphs take the composer and justification.
- textedit: a character style range past u32 leaves the text object
unchanged.
The `sized` helper in the graph tests now also requires the path to be the
four corners of its bounds, so a circle with the same 5 by 5 bounds no
longer passes as a default square marker. The plain column drawn in place
of a design past the budget is checked for its exact 140 point value
height instead of a height above 8 points.
the_menu_family_list_now_does_not_wait_for_the_scan held the background
font scan with a named pipe named like a font. The font catalog now
skips files that are not regular files, so the scan never waited on the
pipe: it read the small test folder and could finish before the test
called installed_fonts_ready and menu_family_list_now. On a busy CI
runner the test then saw the installed fonts and failed with "before the
scan ends, only the fonts already loaded".
The test now builds its database with a test-only lister that the scan
calls before it reads the folder. The lister waits until the test drops
a channel sender after the two calls return, and gives up after 10 s so
that a list that waits for the scan fails the test instead of hanging
it. The pipe, the release thread and the Unix-only gate are removed.
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.
Three graph tests checked only that a series group has children. A line
series also holds its line, and a column series holds its column, so the
check passed with no markers drawn. The tests now count the 5-point
squares at the data points, check the line and the column on their own,
and count the legend swatch only where the graph draws a legend.
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.
Engine tests in crates/engine/src/tests that passed on a broken result
now check the result:
- cancel: Export PDF under a canceled token stops, and outside it the
whole file is written.
- ids_without_selection: each command refuses with nothing selected,
then changes the object given in one undo step.
- pathops: every bad input is refused and changes nothing.
- plugins: the folder's plug-in is listed as loaded, nothing is loaded
once the folder is cleared, and it loads again when set again.
- brushlib: the pasted brush and its pattern equal the copied ones.
- build: Image Trace keeps a preset's settings passed back, for one
preset with an enhanced version and one without, in place of a loop
over every preset.
- strokegeom: two width profiles and two arrowheads are checked by
value, in place of a round trip over every preset and arrowhead.
- script_xmp: the ACL test fails instead of returning when the default
ACL cannot be set.
- Tests that checked every item of a list now also check its length, so
an empty list fails (bboxrotate, build, clippaint, colormgmt,
constrain_new, dynamic_symbols, freeform, gradient).
Removed: a manual timing probe in areafit, covered by
auto_height_in_columns_lays_out_the_columns_twice_a_keystroke, and two
plug-in file generators in plugins that ran only with an environment
variable set, covered by live_effects_are_given_their_object_s_paints
and filters_set_effects_and_stroke_styles.
object.path.simplify now refuses a negative tolerance and a level
outside 0 to 100, which it clamped before.
Tests that passed on an empty list, a missing write or a fixed sleep now
check the result itself:
- The folder search deadline test waits for the walker to block, then
ends the search's time with Search::expire instead of sleeping past a
0.2 s limit. The deadline is kept as nanoseconds after the start so a
test can move it.
- The stale current layer tests check that the compound path still holds
only the paths it was made from; the send-to-layer test sets the stale
id itself, since undo now restores the earlier layer.
- BMP gray export draws a red square and checks it comes out a middle
gray; a black and white page passed with gray turned off.
- Rewriting an EPS the import read whole checks the file changed and
reopens with its art.
- The local Affinity sample test is ignored with a reason instead of
returning at once without AFFINITY_SAMPLES.
- all() checks over anchors, seam fills, graph marks, legend rows, label
looks, retype fonts, text runs, dimension lines and preflight ids now
also pin the count or the text, so an empty result fails.