A template layer stays in Preview whatever its Preview flag is, so only a
layer that is not a template and has Preview off draws placed files by the
Outline rules in Preview mode.
Four EPS import tests asserted elapsed time (5 s, 20 s, a 20 s receive
timeout, and 1,000 copies against 5 times one copy). A busy test runner
could fail them, and a slower run that was still bounded could pass them.
Each now reads a test-only counter on its own thread:
- `]` without its `[`: the operand stack slots that `[` and `]` look at.
200,000 brackets look at no more than 4 slots each.
- The outline check: the point-to-segment distances it works out. A look
drawn 5,000 times works out no more than `MAX_OUTLINE_PAIRS`.
- Objects on a path: the paths and objects the records measure. A
thousand copies of a record measure as many as one copy.
- File fonts: the glyphs `fits` compares. A string of 250,000 of one
character makes fewer comparisons than it has glyphs.
Outside tests the counters do nothing.
Live envelopes, warped type and warped images were held to one shared
difference budget measured only on the first artboard. A file whose PDF
part shows a later artboard, a page cropped to the art, or more than one
artboard could then take more difference on that page than the page
check allows, and open from its PDF part instead of its layers.
Each page the art may be compared with (every artboard, and the art's
bounding box when it is not one of them) now has its own half share of
the page check's allowance. An envelope on a later artboard that draws
away from its drawn art over that artboard's page keeps its drawn art,
where before it opened live. Art on no such page is not held to a page.
Repeated pages are held once, the page list is worked out once per
change of artboards, and an import makes at most 1,024 comparisons with
pages; art that needs more keeps its drawn art.
The Batch dialog's lists wrote the row the arrow keys highlighted into
the dialog's fields. Escape closed the list but kept that row, and OK
then ran the batch with it. The lists now bind to the fields, so Escape
restores the earlier choice and only a committed choice applies, as
New Action and Action Options do since #9730.
Assigning a profile to the front document changes the process's active
color settings (`cms::active`). The status bar readout test assigned
ProPhoto RGB, and the Separations Preview Assign rows test assigned other
RGB and CMYK profiles, in the shared test process. A test that converted
a color while either profile was active got that profile's values: under
plain `cargo test`, `an_artboard_shows_its_background_color_live` read
sRGB red as #b3461a, its ProPhoto RGB value.
Both tests now start with `testing::in_own_process`, as the crate's
other tests that assign profiles or change Color Settings do, and that
helper's doc names these cases.
The Outline view row in docs/ui-parity.md said Preview mode draws linked
images and placed documents as before. On screen, a layer whose Preview
is off draws in outline in Preview mode, so its placed documents are
crossed and its linked images show their crossed frames. A template layer
in Outline mode draws them as Preview mode does. The row now says so.
A layer whose Preview is off draws a placed document in it as the crossed
box, and effects that change geometry reshape that box. Two cull-bounds
paths measured such a sublayer in the mode around it instead:
- A group with effects of its own (a drop shadow, for example) is measured
by fx::cull_bounds, which did not enter each layer's own mode. The group
was culled where the sublayer's moved crossed box was in view. Each layer
in that walk is now measured in the mode its Layer Options give it.
- A group's cached bounds were keyed only on whether placed documents are
crossed. Turning Show Images in Outline Mode on or off changes a
Preview-off sublayer's mode without changing that, so the group kept its
old bounds. Every object other than a path is now keyed on the full
layer mode.
start_overdue only looked at a leg that had not started, so a leg that
started 5 seconds past START_SECONDS and reached its save was let through
and the old entries were deleted. The script now exits 1 before the save
check when the leg's start time is more than START_SECONDS after the
script started.
A panel readout that cannot be copied (an empty value, a disabled row or
a value clipped out of view) still told screen readers it had a Copy
action, and the action did nothing. An empty Link Info row, such as
Color Space for a placed document, showed it. The Copy description and
click action are now added only when a click on the value would copy.
New tests in panel_readout_copy.rs:
- empty_link_info_values_do_not_offer_copy: the empty Color Space row of
a placed .vectorcraft link has no Copy action, and a forged click on it
copies nothing.
- info_readout_copy_requires_the_press_and_release_inside_its_bounds: on
the Info panel's W readout, a press outside followed by a release
inside copies nothing, with the release in the same frame or the next.
- link_info_stays_visible_while_a_long_image_list_scrolls: with 32 images
in each thumbnail size, Link Info stays in place and copyable while
the list scrolls to its end.
Follows #8826 by @yoriswind.
Two SVG import tests asserted elapsed time (1 s and 5 s), so a loaded
machine could fail them and a slower but still bounded run could pass.
- prepass.rs: a test-only counter adds up the numbers Edits::id tries
for a made-up id. The test asserts 55,000 tries for 5,000 ids made up
past 50,000 taken ones. With each id starting again at the number of
ids made so far, as before the fix it covers, the count is 237,507,500
and the assertion fails.
- entities.rs: the run of 1 MiB of `&` keeps its check that nothing is
expanded and drops the timing. The scan is craft_svg::guard in
craft-libs, whose own test checks the linear read.