Commit Graph
24146 Commits
Author SHA1 Message Date
dotCooCoo eca4eae37d Merge main into fix/test-lint-mirror-false-alarms 2026-12-01 07:13:57 -08:00
.CooCoo 7399ed20a6 Merge pull request #10443 from dotCooCoo/fix/test-tolerances-geom
Tests: tighten loose tolerances in geom, pathops, trace and three-d
2026-12-01 07:11:08 -08:00
.CooCoo 707aa4a3b6 Merge pull request #10378 from dotCooCoo/fix/cursor-scale-with-ui
Cursors: tool cursors keep their size under UI Scaling unless Scale Cursor Proportional to UI is on
2026-12-01 07:07:04 -08:00
.CooCoo b61bfc7212 Merge pull request #10350 from dotCooCoo/fix/properties-double-title
Properties: show No Selection above the Document section instead of a second Document title
2026-12-01 06:54:20 -08:00
dotCooCoo 3d2b663b9e xtask: test-lint never-run follows #[path] modules and multiline gates
never-run now finds the files that load a module through `#[path]`,
including a sibling such as `graphics.rs` loading `tests_graphics.rs`,
and follows them in both `--all` and changed-file mode. A changed file
now reaches every file it loads, directly or through other modules, so a
`cfg` added to its `mod` declaration flags the unchanged child's tests.

- Every route to a module counts: inline-module routes, `#[path]` routes
  and several routes from one file are joined, each with its own
  ancestors, and a crate root keeps its own route.
- A default `mod x;` matches only the file it really loads.
- Every line of a multiline `cfg` attribute counts as a gate line, for
  the test's own gates and for the parent declarations.
- The base comparison reads `#[path]` declarations from the base tree,
  so a moved declaration is not reported as newly off.
2026-12-01 06:52:18 -08:00
.CooCoo dd144f7cab Merge pull request #10440 from dotCooCoo/fix/test-tolerances-text-color
Tests: tighten loose bounds in color and text tests
2026-12-01 06:50:03 -08:00
.CooCoo d1208efe17 Merge pull request #10441 from dotCooCoo/fix/test-baselines-derived
Tests: check Affinity pixels and DXF goldens against the formats
2026-12-01 06:43:53 -08:00
.CooCoo 730e891dd0 Merge pull request #10367 from dotCooCoo/chore/test-lint-census
xtask: test-lint reports census tests
2026-12-01 06:43:03 -08:00
.CooCoo 32dca73ec1 Merge pull request #10432 from dotCooCoo/fix/test-tolerances-render-effects-brush
Tests: exact expectations for gradients, brush pressure, Smart Blur and effects
2026-12-01 06:39:09 -08:00
.CooCoo bc887583c7 Merge pull request #10435 from dotCooCoo/fix/weak-test-bounds-tools-js
Tests: assert exact columns, padding and corner span in js and tools tests
2026-12-01 06:37:50 -08:00
.CooCoo 3b6951705b Merge pull request #10091 from dotCooCoo/feat/color-randomly
Color Effects: Randomize Fill Colors gives each selected filled path its own random fill
2026-12-01 06:33:42 -08:00
dotCooCoo a992850228 Merge main into feat/color-randomly
# Conflicts:
#	crates/mcp/src/ui_catalog.rs
#	crates/ui-egui/src/menus/ui_commands.rs
2026-12-01 06:26:48 -08:00
.CooCoo 38e453c034 Merge pull request #10139 from dotCooCoo/feat/group-rows
Arrange Tools: Group by Row puts each row of the selection in its own group
2026-12-01 06:26:18 -08:00
dotCooCoo 8ba55104f0 Merge main into feat/group-rows
# Conflicts:
#	crates/engine/src/cmd/plugin_call/reviewed.rs
#	crates/mcp/src/ui_catalog.rs
#	crates/ui-egui/src/addons/arrange.rs
#	crates/ui-egui/src/menus/ui_commands.rs
#	docs/mcp.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-12-01 06:20:46 -08:00
.CooCoo 1cdb671be4 Merge pull request #10170 from dotCooCoo/fix/eval-super-parse-time
Scripts: test that eval code with a forbidden super or new.target runs none of it
2026-12-01 06:19:54 -08:00
.CooCoo 7e1343b607 Merge pull request #10215 from dotCooCoo/fix/plugin-dialog-values-bound
Plug-ins: test that typed values reach the preview and the rows they show
2026-12-01 06:19:49 -08:00
.CooCoo 4e6cc52aea Merge pull request #10332 from dotCooCoo/fix/script-page-item-edits
Scripts: locked artboards stop path edits, and move and zOrder respect clipping paths
2026-12-01 06:19:21 -08:00
.CooCoo 83b2c22b78 Merge pull request #10148 from dotCooCoo/feat/corner-marks
Arrange Tools: Mark Bounds of Each draws corner marks or a rectangle on each selected object's bounds
2026-12-01 06:18:27 -08:00
dotCooCoo 82a95f680a Merge main into fix/test-lint-mirror-false-alarms 2026-12-01 06:01:18 -08:00
e28faa0a94 Color Halftone: draw dark dots on light tones (#10316)
* 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]>
2026-12-01 14:17:04 +01:00
dotCooCoo 579fa0c247 xtask: test-lint mirror leaves out reads at two entries and shared arithmetic
- Two calls that differ only in the entry they name (a string or integer
  literal, a local, a field or an indexed element) relate two entries, as in
  at("B") == at("A") + 1 or bounds(&s, copy) == bounds(&s, id) + dv, and are
  no longer reported.
- The same arithmetic on both sides (rotate_deg(-270.0) * v ==
  rotate_deg(90.0) * v) checks that two inputs agree and is no longer
  reported.

On main, test-lint --all reports 1 mirror hit instead of 14.
2026-12-01 04:31:47 -08:00
dotCooCoo 889e8eefeb Merge main into fix/test-tolerances-geom 2026-12-01 04:13:05 -08:00
dotCooCoo 4de23f0c95 Tests: census skips helper sources and negated rejection checks
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.
2026-12-01 04:06:08 -08:00
dotCooCoo 3de055166f Merge main into fix/test-baselines-derived 2026-12-01 04:05:47 -08:00
dotCooCoo adef85f5f0 Merge main into chore/never-run-test-allows 2026-12-01 03:42:46 -08:00
dotCooCoo 44c8e34513 xtask: test-lint review fixes for spans, cfg_attr, shared roots and bindings
- 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.
2026-12-01 03:42:46 -08:00
dotCooCoo a75bcbde3d Merge main into chore/test-lint-census 2026-12-01 03:35:41 -08:00
dotCooCoo 6a34a994bb xtask: census skips loops with a break and rejections across &&
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.
2026-12-01 03:35:40 -08:00
.CooCoo 521347a60f Merge pull request #10370 from dotCooCoo/chore/rasterfilters-test-representative
Tests: check representative raster effects in the catalog test
2026-12-01 03:25:41 -08:00
dotCooCoo 72b0bdad60 Tests: Smart Blur checks hand-calculated pixels at radius 2 and 12
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.
2026-12-01 03:17:36 -08:00
.CooCoo c3c545dc69 Merge pull request #10430 from dotCooCoo/fix/format-test-tolerances
Tests: format tests check exact values instead of wide tolerances
2026-12-01 03:16:25 -08:00
.CooCoo d3ec8aa767 Merge pull request #10447 from dotCooCoo/fix/main-app-bar-home-control
Main: the Home size test uses the renamed app bar helper
2026-12-01 03:14:43 -08:00
dotCooCoo 1241f076f5 Main: the Home size test uses the renamed app bar helper
#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").
2026-12-01 03:14:16 -08:00
.CooCoo fac0d0fc80 Merge pull request #10385 from dotCooCoo/fix/behavior-tests-for-source-greps
Tests: check the PDF key and Math.random seeds by behavior
2026-12-01 02:59:13 -08:00
dotCooCoo b2e8b5637e Merge main into chore/never-run-test-allows 2026-12-01 02:55:37 -08:00
dotCooCoo 2c1278280b xtask: test-lint cfg_attr, #[path] and inline-module gates, changed parent declarations
- 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.
2026-12-01 02:55:37 -08:00
dotCooCoo 08f443a055 Merge main into fix/test-baselines-derived 2026-12-01 02:45:34 -08:00
dotCooCoo e6d6769d02 Tests: check DXF golden rectangle edges and circle arcs segment by segment 2026-12-01 02:45:34 -08:00
dotCooCoo 888df1c1c8 Tests: tighten loose tolerances in geom, pathops, trace and three-d
- The two-anchor ellipse test now expects the exact area of its two
  cubics, 4/5 of the box (4800), instead of a 10% band around the true
  ellipse that accepted handles moved 10 pt inward (4560).
- The abutting trace seam must sit within 0.05 px of the anti-aliased
  edge at x = 10.4, so snapping it to a whole pixel fails.
- The straight-on shadow area is compared exactly with 10000: the
  sampling grid has 1 pt2 cells and no sample on the square's edge.
- The pinned Pathfinder inputs now also get a point check: for Unite,
  Minus Front, Minus Back, Intersect and Exclude, every grid point away
  from an input edge must be inside the output exactly when the inputs
  covering it say so, so the pins no longer rest on the sweep that
  computed them alone.
2026-12-01 02:39:28 -08:00
dd1f4d2936 Tools: add search beside Edit Toolbar (#8770)
* 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]>
2026-12-01 11:34:49 +01:00
dotCooCoo 7da8771139 Tests: check Affinity pixels and DXF goldens against the formats
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.
2026-12-01 02:34:00 -08:00
.CooCoo 295da28ec5 Merge pull request #10420 from dotCooCoo/fix/pdf-read-counter-address-reuse
PDF: count test reads of a buffer from a mark, not over its address's whole history
2026-12-01 02:32:29 -08:00
dotCooCoo cdc355d436 Tests: check the drawn H's vertical position and each mesh column's color
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.
2026-12-01 02:27:45 -08:00
dotCooCoo 6ea1132e5c Tests: tighten loose bounds in color and text tests
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.
2026-12-01 02:27:00 -08:00
.CooCoo e8cd86bcf5 Merge pull request #10424 from dotCooCoo/fix/menu-font-scan-test-hang
Tests: the held font scan test no longer hangs when its pipe is released early
2026-12-01 02:23:55 -08:00
dotCooCoo fc5b42e304 xtask: census counts rejections in .all() and bounded zip ranges
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.
2026-12-01 02:21:12 -08:00
dotCooCoo 0f95fb0880 Merge main into chore/never-run-test-allows 2026-12-01 02:21:01 -08:00
dotCooCoo e7715d880b xtask: test-lint round trips, mod scopes, never-run allows and doc names
- 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.
2026-12-01 02:21:01 -08:00
yoriswind a0bdd86acc Reuse document resources when rendering PDF effects (#10342) 2026-12-01 11:17:48 +01:00
dotCooCoo 9730c888fb Tests: seed the PDF file key test through protect
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.
2026-12-01 02:17:47 -08:00