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.
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.
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.
svg_type_shifted_two_billion_points_exports_to_pdf now checks that the
SVG import keeps the type's shift of more than 2,000,000,000 pt, and that
the exported PDF leaves the type out, read back with the PDF importer.
Before, it checked only that the export returned Ok, so an import that
dropped or clamped the shift made it pass without reaching the bound.
a_long_thin_shape_with_a_shadow_renders_and_exports now checks that the
Affinity import gives exactly one shape with a drop shadow, more than
3,000,000 pt wide, before it renders and exports it. Before, an import
that dropped the shadow made it pass without drawing one.
The other 66 test-lint hits in import_fuzz.rs are property tests whose
claim is that hostile input loads, renders and exports without a panic.
Their helpers (survive, survive_library and the others) fail the case
through TestCaseError, which the no-assertion rule does not count.
With Include Bleed, a .vectorcraft, .ai or EPS row wrote the artboard
already grown by the document's bleed and kept the document's bleed as
well. Opened again, the file had the bleed outside the grown artboard, so
a PDF with the document's bleed came out with it twice: a 3 mm bleed made
a 6 mm one.
These files now hold the grown artboard with a bleed of 0. PDF rows and
Full Document files are unchanged. The params text and docs/mcp.md say so.
The white square behind the Difference square was opaque, so the art behind
the group never reached the blend and the test gave the same answer with
isolation off. That square is now 50 % opaque. The test checks that the
isolating group gives one answer and that the same group without isolation
reports that the art behind the selection is not one color.
Common Tangents… now also does what Smooth Bridge… did (#10465).
- Connect tangents joins the two tangents of each kind into one closed
shape, along the chords between where they touch each path (a point's
two lines make a triangle). `connect` on
`addon.pathtools.commonTangents`.
- With External, the dialog shows Straight and Curved. Straight keeps
the tangent lines; Curved joins the circles along concave arcs, as
Smooth Bridge did, with Radius, Constant Gap, Reach and Keep
Originals, which take input only with Curved. `curved`, `radius`,
`gap`, `reach` and `keepOriginals` on the command; options of the
other mode are an error.
- The Smooth Bridge… menu item is gone. `addon.pathtools.bridge` still
runs for scripts and actions, opens the merged dialog with External
and Curved, and is left out of the command palette and Keyboard
Shortcuts. A palette search for "metaball" or "smooth bridge" finds
Common Tangents.
Docs: docs/mcp.md, docs/ui-parity.md, ROADMAP.
When the planar map is skipped because the paths have too many pieces
(SHAPE_BUILDER_MAX_MAP_EDGES, added in 7a46d5ec56), too many segments
or exceed the sweep's work budget, Divide with open paths fell back to
the filled areas. It replaced the selection with the uncut shapes and
deleted the cutting paths without saying so. Live Paint built no faces:
Make reported the paths as too degenerate to paint, and with Gap
Detection a group could get its edges and no faces.
pathops now has try_pathfinder_with, try_live_paint and
try_live_paint_with_gaps, which return TooManyPieces in those cases
without sweeping the filled areas. Divide, Live Paint Make, Merge and
Gap Options use them and stop with an error that leaves the art
unchanged. The caps, and the fallbacks of pathfinder_with, live_paint,
live_paint_with_gaps and the Shape Builder, are unchanged.
When a Gap Options preview fails after one that found gaps, the dialog
no longer keeps drawing the earlier preview's gaps over the groups the
failure put back.
Docs: docs/mcp.md, the commands' params text and the Divide line in
docs/target-app-parity.md.
a_blend_mode_inside_an_isolating_group_answers_over_art_of_several_colors
only checked that color.contrast returned Ok. It now checks that the
answer has a ratio above 1 and a background color, and that the same
square in Normal mode gives a different ratio, so a contrast reading
that drops the blend mode fails the test.
a_replaced_sidecar_takes_no_inherited_acl and
a_replacement_takes_no_inherited_acl_the_old_file_lacked set the folder's
default ACL with setfacl and returned early when it was missing, so on a
Linux host without the acl package they passed without checking anything.
They now write the default ACL as the system.posix_acl_default extended
attribute through rustix, check that a new file takes it, and read the
replacement's access ACL with getxattr. They skip only when the file
system keeps no ACLs (EOPNOTSUPP); any other setup error fails the test.