Commit Graph
24486 Commits
Author SHA1 Message Date
.CooCoo f3d8dee1d2 Merge pull request #10543 from dotCooCoo/fix/script-save-test-workspace
Tests: script save tests remove their folders when an assertion fails
2026-12-02 00:47:28 -08:00
dotCooCoo 8c6ce6d5c9 Tests: read-only fixture test checks it caught its own panic
The test caught any panic from its closure, so a failed set_permissions
would also pass it while the file was still writable. It now asserts
the file is read-only before its panic and checks the caught payload is
that panic's message.
2026-12-01 23:53:39 -08:00
dotCooCoo 615d35f878 Merge main into fix/script-save-test-workspace 2026-12-01 22:54:36 -08:00
dotCooCoo 81c9588b26 Tests: read-only gate test sets up its cleanup before the first assertion
a_script_gate_does_not_write_over_a_read_only_file created its
ReadOnlyFixture guard after two assertions, so a failure in either left
the test folder behind. The guard is now created right after the file
path is made, before the file is written.
2026-12-01 22:54:36 -08:00
.CooCoo 7554b7fc30 Merge pull request #10196 from dotCooCoo/fix/script-module-scan-clock
Tests: the .mjs listing test lists the Scripts folder on a fixed clock
2026-12-01 22:48:46 -08:00
.CooCoo 1cf61e3015 Merge pull request #10299 from dotCooCoo/test/tab-overflow-footer-semantics
Tests: overflowing panel tabs work from the keyboard, and footer buttons announce their state
2026-12-01 22:48:29 -08:00
.CooCoo 6e8bd90a0f Merge pull request #10419 from dotCooCoo/fix/linked-corner-menu-width
Transform: Corner selects are as wide as the Corner Radius field
2026-12-01 22:46:25 -08:00
.CooCoo 01c35a3fa5 Merge pull request #10531 from dotCooCoo/fix/window-panels-stay-shown
Panels: a Window-menu panel keeps showing while art is selected and moved
2026-12-01 22:46:14 -08:00
.CooCoo ed6619523c Merge pull request #10504 from dotCooCoo/fix/toolbar-chips-one-line
Tools: Color, Gradient and None share one line in a one-column rail
2026-12-01 22:45:13 -08:00
dotCooCoo 46dbb1fb28 Tests: script save tests remove their folders when an assertion fails
folder() in tests/script_save_open.rs returned a PathBuf, and each test
removed its folder only on its last line, so a failed assertion or a
panicking script left the folder in the system's temporary folder. It now
returns a Workspace guard, as tests/script_print.rs does, which removes
the folder when it is dropped and clears read-only flags first when the
first removal fails (Windows does not delete a read-only file).

a_script_gate_does_not_write_over_a_read_only_file in file_access.rs made
its file writable again and removed its folder only after its last
assertion; a guard now does both when the test ends.
2026-12-01 22:41:20 -08:00
.CooCoo 9cfa3f1d13 Merge pull request #10525 from dotCooCoo/fix/engine-test-pass
Tests: engine command and integration tests check what they claim
2026-12-01 22:31:51 -08:00
.CooCoo 2f68b49692 Merge pull request #10534 from dotCooCoo/fix/test-lint-platform-only-tests
xtask: test-lint never-run lists tests that build on macOS or Windows without failing
2026-12-01 22:31:34 -08:00
.CooCoo 1010fd013d Merge pull request #10501 from dotCooCoo/fix/test-lint-sleep-polls
xtask: test-lint sleep rule leaves out condition polls and fallback releases
2026-12-01 22:31:17 -08:00
.CooCoo 2c60fc07f6 Merge pull request #10532 from dotCooCoo/fix/schema-phrases-follow-apischema
Tests: SCHEMA_PHRASES checked against the parameter schema's errors
2026-12-01 22:31:01 -08:00
.CooCoo 7387c46666 Merge pull request #10520 from dotCooCoo/fix/ui-egui-outside-panels-tests
Tests: ui-egui tests outside the panels check counts and waits
2026-12-01 22:30:43 -08:00
.CooCoo b15abf8a36 Merge pull request #10536 from dotCooCoo/fix/engine-src-tests-guards
Tests: engine tests that check every item also check the items exist
2026-12-01 22:30:11 -08:00
.CooCoo c45cdeff00 Merge pull request #10529 from dotCooCoo/fix/engine-src-tests-pass
Tests: engine tests assert results instead of only success
2026-12-01 22:29:55 -08:00
.CooCoo 95dd368c2c Merge pull request #10188 from dotCooCoo/fix/craft-fonts-pin-main
CI: move the craft-fonts pin to craft-fonts main in every workflow, so builds embed the tab-title face
2026-12-01 22:27:41 -08:00
.CooCoo 40b3f26d62 Merge pull request #10535 from dotCooCoo/fix/sysfonts-menu-family-held-scan
Tests: the menu family list test holds the font scan with a lister
2026-12-01 22:12:54 -08:00
dotCooCoo e727c01c13 Merge main into fix/test-lint-sleep-polls
main replaced the hit's per-file `also` ranges with `gates`, a list of
lines in the hit's own file. The sleep rule's loop and spawn spans now
add their lines to `gates`. The `last_literal` and `path_literal`
helpers that main replaced are left out.
2026-12-01 21:41:44 -08:00
dotCooCoo 906aa83b6c Merge main into fix/test-lint-platform-only-tests
main replaced Hit's `also` lines with `gates`; the merge keeps `gates`
and adds `report_only` beside it.
2026-12-01 21:41:39 -08:00
dotCooCoo 20bad5e8a9 Merge main into fix/engine-test-pass 2026-12-01 21:19:18 -08:00
dotCooCoo 45bd5bb967 Tests: the plain column drawn for a design past the budget is checked as a rectangle
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.
2026-12-01 21:19:18 -08:00
BFlat f2f7727305 Merge pull request #10479 from ruchirguitar/feat/color-themes-row-menu
Color Themes: add a context menu to saved theme rows
2026-12-02 11:47:30 +07:00
BFlat 1e8e27fa16 Merge pull request #10481 from ruchirguitar/glyphs-cell-menus
Glyphs: right-click a cell to insert or apply it
2026-12-02 11:47:24 +07:00
BFlat 5ed86c0c45 Merge pull request #10482 from ruchirguitar/feat/resource-library-item-menus
Add item context menus to resource library panels
2026-12-02 11:47:18 +07:00
BFlat 3933b68868 Merge pull request #10521 from ruchirguitar/fix/ai-hidden-styled-text-visibility-binding
.ai import: a visibility variable on hidden styled type binds the group that hides it
2026-12-02 11:47:11 +07:00
BFlat cb7ff9ed78 Merge pull request #10524 from ruchirguitar/perf/ai-word-search-budget
.ai import: hold the page type's word searches to their own budget
2026-12-02 11:47:05 +07:00
dotCooCoo a7e5bcbaba Dependencies: pin craft-libs at 77ade517
storytold/craft-libs#4634 merged as b942e743. Every craft-libs rev in
Cargo.toml, apps/vectorcraft-web/Cargo.toml, Cargo.lock and
xtask/src/pdf_deps.rs moves from 965c7bee to craft-libs main at
77ade517, which contains that merge. The egui revs move from 07c20531
to 861d60a6, the revs craft-libs pins at 77ade517. winit stays at
0dfcec0e.
2026-12-01 20:39:46 -08:00
dotCooCoo b2cbd0ceaf Merge main into fix/linked-corner-menu-width 2026-12-01 20:39:18 -08:00
dotCooCoo bdf6454780 Merge main into fix/engine-test-pass 2026-12-01 20:28:57 -08:00
dotCooCoo 0a9ea7ad8d Merge branch 'fix/engine-test-pass' of github.com:dotCooCoo/vectorcraft into fix/engine-test-pass 2026-12-01 20:28:46 -08:00
dotCooCoo e97b699b95 Tests: folder search tests wait for the walker by handshake, not by sleeping
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.
2026-12-01 20:27:27 -08:00
.CooCoo 22bc29d69d Merge pull request #10460 from dotCooCoo/fix/test-lint-mirror-false-alarms
xtask: test-lint mirror leaves out entry reads, never-run follows #[path] modules
2026-12-01 20:19:50 -08:00
dotCooCoo c21cc4f3ff Tests: engine tests that check every item also check the items exist
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.
2026-12-01 20:18:48 -08:00
dotCooCoo 8594628d27 Merge main into fix/engine-test-pass 2026-12-01 20:15:32 -08:00
dotCooCoo 7f6cfef99c Tests: graph default markers are checked as squares, plain column height pinned
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.
2026-12-01 20:15:32 -08:00
dotCooCoo c6c7de257f Dependencies: move the craft-libs pin to craft-libs main 77ade517
craft-libs #4659 (swatch chips that fit a one-column rail) and #4723
have merged, so every craft-libs rev moves from #4659's head edbf2117
to craft-libs main at 77ade517. The egui revisions move to 861d60a6,
the ones that craft-libs rev pins; winit stays at 0dfcec0e. Cargo.lock
changes only the sources of those packages.
2026-12-01 20:14:00 -08:00
dotCooCoo 5c7bceaa53 Merge main into fix/engine-test-pass 2026-12-01 20:04:04 -08:00
dotCooCoo d66fa2fae2 Merge main into fix/sysfonts-menu-family-held-scan 2026-12-01 19:54:31 -08:00
dotCooCoo 1957da7178 Tests: the menu family list test holds the font scan with a lister
the_menu_family_list_now_does_not_wait_for_the_scan held the background
font scan with a named pipe named like a font. The font catalog now
skips files that are not regular files, so the scan never waited on the
pipe: it read the small test folder and could finish before the test
called installed_fonts_ready and menu_family_list_now. On a busy CI
runner the test then saw the installed fonts and failed with "before the
scan ends, only the fonts already loaded".

The test now builds its database with a test-only lister that the scan
calls before it reads the folder. The lister waits until the test drops
a channel sender after the two calls return, and gives up after 10 s so
that a list that waits for the scan fails the test instead of hanging
it. The pipe, the release thread and the Unix-only gate are removed.
2026-12-01 19:54:21 -08:00
dotCooCoo 5e271bcf66 Merge main into fix/test-lint-platform-only-tests 2026-12-01 19:54:15 -08:00
dotCooCoo d1c255fa64 xtask: test-lint never-run lists tests that build on macOS or Windows without failing
never-run failed the check on tests of macOS- or Windows-only code, such
as the touchpad gesture tests in quickpenwheel.rs and the Windows
performance counter tests in vectorcraft-cli's perf.rs. CI cannot build
them on Linux, and they run locally on their platform.

A never-run hit on a test that still builds on macOS (aarch64 or x86_64)
or Windows (x86_64 or aarch64) is now listed with the report-only rules,
and its note says which platform to run it on. A test that no desktop
target builds, such as one gated on target_os = "ios" or
all(windows, unix), still fails the check.
2026-12-01 19:54:14 -08:00
dotCooCoo 8bde5b8960 Merge main into fix/window-panels-stay-shown 2026-12-01 19:45:48 -08:00
dotCooCoo 36161768e5 Tests: check both axes of the move in the Window-panel test
The moved-art assertion accepted a horizontal move as short as half the
release distance and never read the vertical position. The test now
turns snapping and Smart Guides off before the drag and checks that the
rectangle's corner moves by the document displacement between press
and release on both axes.
2026-12-01 19:45:47 -08:00
dotCooCoo a73e85324a Merge main into fix/toolbar-chips-one-line 2026-12-01 19:43:37 -08:00
.CooCoo 50608f3cdf Merge pull request #10519 from dotCooCoo/fix/panels-test-pass
Tests: panel tests check results, not that a list is non-empty or every catalog has a row
2026-12-01 19:41:44 -08:00
dotCooCoo 4f942e5ba6 Merge main into fix/engine-test-pass 2026-12-01 19:34:12 -08:00
dotCooCoo 7c4edc2219 Tests: graph marker tests count the markers, not the series' children
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.
2026-12-01 19:34:12 -08:00
.CooCoo 51ea77a565 Merge pull request #10509 from dotCooCoo/fix/drag-frame-ui-cost
Properties: a drag does not measure the panel's sections on each move
2026-12-01 19:32:03 -08:00