- move, remove() and zOrder throw "Only Image Trace can make a tracing",
with nothing changed, when they would leave an image at the bottom of
an ordinary group named Image Trace: a path moved out of the group or
to its top, Send to Back or Send Backward on the image, and Bring to
Front or Bring Forward on the object below it.
- releaseTracing() throws "Cannot release a tracing containing added
artwork", with nothing changed, when the tracing holds an object its
trace did not make. imageTrace.release keeps only the source image, so
the added object would be deleted.
- The TracingOptions members with no setting and TracingObject.areaCount
are left out of hasOwnProperty and reflect. Reading them still throws.
Docs: docs/mcp.md.
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.