A call to the right of an || at its own nesting level may never run, so
`menu(c).is_some() || app.run(c).is_ok()` is still reported as a census.
The right side of &&, an || inside an earlier group or a sibling element,
and the pipes of a zero-argument, move or async closure do not skip the
call.
A loop over a whole table whose body passes the entry to a call together
with other state (a command run, a file written, a render, a parse of other
input) checks behavior for each entry, so the census rule no longer reports
it. A lookup, a call on the entry alone, literal arguments and calls in a
failure message still count as a census.
The census count from test-lint --all drops from 42 to 37: the cutting
add-on dialog table, the quick pen toolbar clicks, the white spot ink
overprint output, the plug-in proposal loads and the unit parse property
test are no longer reported.
* fix(effects): draw dark dots in RGB Color Halftone
(cherry picked from commit 2dbe91af9f)
* Cover dark-on-light RGB halftone polarity
Updated halftone tests to clarify behavior regarding pixel brightness and dot sizes.
(cherry picked from commit babd60e332)
* effects: bound Color Halftone dots at full coverage
(cherry picked from commit 8fb0bf55607762df6e3acc2ed7ed37a643fea022)
* effects: describe Color Halftone ink coverage
(cherry picked from commit 0dbf12514095b6e12cb4414055d8ac47ee1fbcdc)
* Document the change to saved RGB halftones
* Test the bounded edge overlap of full halftone dots
---------
Co-authored-by: Mex <[email protected]>
Co-authored-by: dotCooCoo <[email protected]>
A whole-table loop or .all(…) whose source calls an asserting helper
runs that helper for every entry, so census no longer reports it.
A negated is_ok() or is_some() checks a rejection and is no longer
counted as a presence check; !is_empty() still is.
- A negated .contains(...) check forbids a value and is no longer
treated as a presence check; !items.is_empty() still is.
- reads-source matches the last path literal of a read_to_string
argument, and its span runs through the argument's closing paren.
- A for pattern binding shadows an outer let inside the loop body.
- Nested cfg_attr conditions are combined before the inner cfg applies.
- A never-run hit counts edits to the enclosing cfg lines and to the
test, not to code between them.
- A parent declaration edit counts against a child's test only when
the test still ran in CI at the base.
- A module loaded by several roots is off only when every root leaves
it out.
- docs/development.md lists reads-source and never-run as failing rules.
A break can end a whole-table loop before the last entry, and an unwrap_err() or expect_err() on the other side of an && always runs, so neither is a presence-only census.
The Normal-mode test compares the default output with blurMode=normal,
so a fault both share passes it. Three checks now stand on their own:
- A 6-pixel row at radius 2 checks exact averages that a radius-1
search gives differently (105 and 115 at the ends instead of 110).
- A step from gray 100 to 200 at radius 12 checks that the pixels next
to the step read the box-blurred copy at threshold 50 and keep their
gray at threshold 30, that pixels far from the step keep theirs, and
that medium quality takes in less of the other gray than low.
- A one-column gray-200 stripe at radius 12 checks that a neighbour
whose own value is past the threshold stays out even when its
blurred value is within it.
- A 5 x 5 image at radius 2 checks that a pixel two columns away counts
and one two columns and two rows away (outside the disc) does not.
- A 7 x 7 image with default settings checks that the default radius
of 3 reaches a pixel three columns away.
- The radius-1 threshold test gives its last two pixels the same color
with alpha 255 and 128, so it fails if alpha is left out.
#8770 renamed the chrome test helper Shown::starting to app_bar_control,
which looks only in the window's title bar because the Tools panel can
hold a control with the same name. The test
the_app_bar_home_is_small_and_menu_titles_pad_their_text came in with
2030c7b2d2 while #8770 was open and still called starting, so
vectorcraft-ui-egui's tests no longer compile on main (E0599 at
chrome/tests.rs:573). The test now calls app_bar_control("Home").
- never-run reads cfg(...) nested in cfg_attr, and blanks comments in cfg predicates.
- A file's inherited gates come from the mod declaration that loads it: #[path] overrides
are resolved, and a declaration inside an inline module gates the file under that
module's directory. Several declarations of one file join with any(...).
- In changed-files mode, a change to a parent mod declaration or its cfg counts for the
never-run hits of the files it loads, including files that did not change.
- Round trips reject arithmetic before the lookup (1 + lookup(k)).
- reads-source ignores Rust paths that occur only in comments.
- if let and while let bindings shadow outer bindings only inside their body.
- The mirror allow test now starts from an assertion that is reported.
* Tools: add search beside Edit Toolbar
Open the existing tool-aware command palette from the Tools footer, preserving the customization button and fitting both column layouts.
Closes#8758.
* Format the toolbar Search interaction regressions
* Format the native Search tooltip expectation
* Use the current stroke paint API in Properties
* Scope app-bar test lookups to the title bar
---------
Co-authored-by: FredApps <[email protected]>
Co-authored-by: FredApps <[email protected]>
The Affinity raster tests compared decoded pixels with CRCs captured from
the reader's own output, so a decoding error present when the CRC was
taken would pass. They now read the image's tiles straight from the
archive (256-byte by 256-row planes, states 2 and 4), interleave them,
scale 16-bit samples with rounding, and compare the whole buffer. The
Affinity 3 signatures drop the CRC of the model's Debug output and keep
the feature counts.
The DXF golden test no longer rewrites its expected files when
WRITE_DXF_GOLDENS is set. Each golden file is first checked against the
drawing it should hold (rectangle corners, circle center, radius and
bulges, ACI and true colors, lineweights), and a mismatch saves the
output to the temp directory for review.
The composite import test now checks the H's top and bottom as well as its
width and height, so a shift of the drawn glyph fails it. The mesh export test
samples each patch's center, so swapped column fills fail it.
Five assertions accepted wrong results:
- Freeform: a point split half way along a Catmull-Rom segment must be
at x = 43.75, not anywhere between the two ends.
- Diamond gradient pixels: the center is exactly white and the corners
exactly black, instead of a bound that accepted white scaled to 220.
- Ruby: the default reading is half the base size (ratio 0.5), where
the old bound accepted 70%.
- Caret Up/Down: the caret lands on the stop nearest the column, where
the old 12 pt tolerance accepted a neighboring stop.
- Hyphenation defaults: a frozen hash of line breaks is replaced with
explicit breaks ("The lan-" / "guage", "The gar-" / "den") and hyphen
flags for both composers, ragged and justified.
Each new assertion fails when the behavior it checks is broken.
An .all(...) predicate that calls unwrap_err or expect_err on a branch
that always runs now checks a rejection, like an asserting helper.
A zip with a bounded range (zip(0..2)) bounds the loop, while an
open-ended range (zip(0..)) still visits every entry. Rejection calls
are matched with whitespace inside them (unwrap_err ()) at every site.
- census: a lookup counts as a round trip only when its arguments read the
loop entry, so `lookup("baseline") == expected` is a real check.
- never-run: a `mod child;` inside an inline `mod platform { ... }` loads
platform/child.rs, so it no longer gives its cfg to src/child.rs.
- never-run: an allow covers only the test it sits above; a module cfg no
longer stretches it over the next test in the module.
- exact-pixel: document geometry is matched by identifier (`doc`,
`document`, `doc_*`, `*_doc`), so `dock_rect` is checked.
The test called Entropy::seeded directly, so it still passed if export
stopped reading the OS random source. Entropy::new now reads the OS
bytes and the time through seed_sources(), which a test can set for
its thread, and the test runs protect with fixed OS bytes, other OS
bytes and a failed OS read. The OS read in vectorcraft-js's os_random()
is now one function for tests and builds alike.
Five assertions accepted any positive value, so a wrong result could pass:
- host_tests: the evaluator site column and the thrown error's column are
now 3, where the indented call and throw start.
- promise_tests: rejections relayed through Promise.all, Promise.race and
a catch handler report column 3, not any column above 0.
- xmp_tests: the sample packet's padding is exactly 1.
- corners tests: a 10 pt radius at a 120 degree polygon corner spans
10 pt, within 1e-6, instead of anything in (5, 10.5].
ui.menuDialog opens the Group by Row dialog, so its params text and the
MCP UI catalog name addon.arrange.groupRows with the other Arrange Tools
dialogs.