Commit Graph
19860 Commits
Author SHA1 Message Date
bflatastic f0964d3c0c Run the chrome, palette, menus, document window and unsaved tests in the app's window with its frame input 2026-11-22 21:31:41 +07:00
bflatastic 6411453ed5 Give the app its window before the first frame, and the frame's keymap the user's shortcuts
The hosts hand the app the window's context when they create it, so the first frame's input has
the app's commands. The frame's command input carries the shortcut overrides and the hold
shortcuts (kb.C14). Framework Select All and Delete run the engine's select.all and edit.clear.
shortcuts.set reads X X and Hold X (kb.C13b). Plug-in shortcut tests draw a frame after an
install, as the window's keymap takes new commands per frame (shortcuts-w7 note 4).
Test frames adopt their context first; testing gains part_frame and fixture_input.
2026-11-22 21:31:40 +07:00
bflatastic c730eda419 Count a modal dialog opened this pass as open, as the dialog host does 2026-11-22 21:26:51 +07:00
bflatastic a7d664cb39 Type the text a paste delivers to the Type tool's editor part 2026-11-22 21:19:21 +07:00
bflatastic 9b1f76b8ec Fix the dialogs n-z and addons tests: held OKs' closing frame, rows' own values, async save picks, set-time rules
Tests: a held OK files its answer (confirm_by_id reports false) and closes at the dialog's next pass; save
panels answer after the command, so the options dialog follows a frame later; values sent through
ui.dialog.set are the rows' own (radio ids, choice ids, numbers in points); Save PDF's key is pdf-export
and its sections are ids; ui.click is queued input; URLs open from the app's tick; the 3D fixture takes
the app's frame input; the Simplify strip's slider is named as production named it.

App: Transform Each runs its link and mode rules when automation sets a value, and keeps Reflect and the
reference point as their rows hold them.
2026-11-22 21:19:17 +07:00
bflatastic 0d9ee13eac Show the place tests' app in a window and draw every frame on its context
The Place dialog and the import options open on the window's dialog host, so an app without a window
had nowhere to show them.
2026-11-22 21:18:57 +07:00
bflatastic d733b5de3c Step the stroke weight in the unit the field shows, from 0.25 pt when blank
The weight stepper gets and returns the shown number while its ladders are in points: steps now
convert, so a picas or millimetre weight steps through the ladder, and a blank weight steps from
0.25 pt (#5349) and keeps its presets. Dashes turned on for the first time are 12 pt dashes and gaps,
as before. Tests read the weight as the field's number and use the framework's X position and Angle.
2026-11-22 21:15:45 +07:00
bflatastic baa04fecd6 Panels: field labels without their colon, disabled Character rows do nothing, Location without float noise, Align buttons by the panel's rule and the key anchor's name, Flattener Preview within the texture limit 2026-11-22 21:08:06 +07:00
bflatastic f9deeaba3d Panel tests: dialogs and keys on the app's own window, frames with the app's input, the framework's events and the sheets' command ids 2026-11-22 21:08:05 +07:00
bflatastic 3c24ee5c31 Actions panel: free name for an appended built-in set, copies without function keys, Replace selects the set, pauses start after a pass's tick; Save picks answered as saves in the tests 2026-11-22 21:08:04 +07:00
bflatastic 57cbde4529 Give the Swatch Conflict question its key 2026-11-22 21:07:03 +07:00
bflatastic bff518cc98 Give the keys to the Type tool's editor part when an edit starts 2026-11-22 21:07:01 +07:00
bflatastic 2904aba0d0 Port tests to the ruler's relative indents, the dialogs' own fields and numeric params
Ruler edits move the first-line indent relative to the left one (RulerValues); swatch dialogs are read
by their name and from fields, a new swatch's group is checked after OK; the bullets loop picks None
last; 3D settings compare as numbers, as whole numbers are stored as integers.
2026-11-22 21:06:56 +07:00
bflatastic f36fcd97de Keep a styles-panel highlight made before the panel first drew
A highlight set by a panel action before the list ever drew had no document yet, so the next draw
dropped it; such a panel now takes the active document.
2026-11-22 21:06:53 +07:00
bflatastic a0794930ef Fix the dialogs a-m tests: style dialogs' Reset and number fields, held dialogs' frames, hidden JSON fields, scroll ownership
- Style dialogs: the wrapper passes Reset through, a number set on a text row is taken as its JSON text, fields hold numbers as production showed them (12.0), a refused value keeps the last accepted preview, and a paint set from outside updates its tint flags.
- Brush Options keeps its hidden JSON values whole and holds an automation-set Colorization as its select does.
- Graph Data's sheet and JavaScript Files' list own their scroll.
- Kinsoku Shori Settings' New no longer writes the old fields into the new set.
- Flatten Transparency opens with Preview off; a gradient stop's colour takes hex only; Envelope Warp's Horizontal/Vertical radio holds its ids.
- Tests: held dialogs' OK is driven through app frames; lookups use visible labels; a length row is set in points (wg.W21); Check Spelling sits in Edit > Spelling.
2026-11-22 21:06:40 +07:00
bflatastic c83f33df28 Name panel controls and read their values as the framework reports them
Field labels drop the colon the form draws (Angle, Line Length, Corner, Pivot, guide X and Y), each
corner's Corner select gets its own name, the Transform panel's own commands get their titles, the
Appearance row swatches are named for their row and Blend's Direction label describes its button.
Tests use the framework's names (X position, Width, Top left, Visibility, Format), read length and
percent fields as the number they report, panel-menu checks from the panels' menu states, swatch
values as #rrggbb, and frame effect dialogs in the app's own window.
2026-11-22 21:06:31 +07:00
bflatastic f1f5eee697 Name the recolor wheel as production did, list open dialogs in ui.inspect, and answer place picks once they open
- Recolor Artwork's wheel is "Color wheel" or "Segmented color wheel" again; ui.dialog.set takes the
  Edit tab's fields that start unset (sliderMode, display, wheelTool, wheelAxes).
- ui.inspect lists the window's open dialogs under dialogs, as the framework's automation asks.
- Tests: wheel markers are named by lowercase hex as the framework names them, a channel's rail is its
  Slider (the number field shares the name), the dock is read under its saved name, and Place answers
  the file pick after it opens.
2026-11-22 21:06:04 +07:00
bflatastic 82759d66fe Find the Save PDF dialog by its key and its file on the save job in the read-only save test 2026-11-22 20:29:45 +07:00
bflatastic 91f500e1a8 Switch to the Direct Selection tool by its id in the selection widget tests 2026-11-22 20:29:40 +07:00
bflatastic 7e444041bb Hold back files that are ready to open while an opened document's Missing Fonts dialog waits for the frame 2026-11-22 20:29:37 +07:00
bflatastic 09020aa53c Open a message or the replace-files question at once when no other dialog is open 2026-11-22 20:29:33 +07:00
bflatastic fcb097de77 Give a document opened through the session its view when the canvas shows it 2026-11-22 20:29:30 +07:00
bflatastic f25357740f Start the default UI state with the default dock 2026-11-22 19:52:44 +07:00
bflatastic cb74e7bce6 Make the artboard canvas tests' artboards with file.new 2026-11-22 19:18:10 +07:00
bflatastic b5b4f93264 Draw the Actions test app's first frame before it edits shortcuts 2026-11-22 19:13:15 +07:00
bflatastic e631262947 Give tests that open dialogs or click by name the shared windowed app 2026-11-22 18:57:43 +07:00
bflatastic 13cd5a627d Borrow the test harness's app once per expression 2026-11-22 18:40:26 +07:00
bflatastic 5e4fd7bd23 Give panel test frames the app's frame input 2026-11-22 18:33:42 +07:00
bflatastic c1da62b997 Drive test frames as the hosts do
testing::app_frame runs one whole app frame the way the hosts run it: the app
gives the frame its input through embed::before_input, the window draws, and the
commands the frame fired run as the next frame begins (kb.C26). The whole-app
frame helpers of the tests use it in place of their own run_ui, so shortcuts
and other fired commands reach the app in tests too.
2026-11-22 18:23:31 +07:00
bflatastic 5f0089281e Handle the texture uploads of test frames
The egui fork asserts that a frame's texture deltas are handled. Test helpers
that dropped a frame's output now clear its deltas, as the other frame helpers
do, and the panes tests' wait_ready reads the uploaded picture and then clears
the uploads it collected.
2026-11-22 18:07:32 +07:00
bflatastic 4a565baf0c Give tests that open dialogs or edit shortcuts the app's window
Dialogs now open on the window's dialog host and the shortcut commands edit the
keymap the window builds in its first frame, so a test app needs a window. One
helper, testing::windowed, gives it one (the dialogs tests' window and three
copies of it now use it); the dialog, artboard and appearance tests that built
a window-less app use it, the shortcut tests' apps draw their first frame, and
the actions tests install their scripted files on the app's host the way the
picks tests do.
2026-11-22 17:58:48 +07:00
bflatastic 881efe891b Give scrolling collections their owner and tests the app's UI context
A collection inside a body that scrolls along its rows now says who scrolls:
the Recolor Color Groups list and color bars and the Export for Screens items
cap their rows at the height production's panes had; the Symbols, Graphic
Styles and Links panels and the Swatches paint popover hand the scroll to their
one collection; the plates list, the opacity mask row, the character
alternates bar and the Export for Screens tabs take their natural height.

Tests that drew on a bare egui context now use testing::ui_context, so the
framework runtime and its command registry are installed as in the app.
2026-11-22 17:50:01 +07:00
bflatastic 430373d842 Merge remote-tracking branch 'origin/main' into sync/main
# Conflicts:
#	apps/vectorcraft/src/window.rs
#	crates/text/src/fontdb/db.rs
#	crates/text/src/tests/sysfonts.rs
2026-11-22 14:18:22 +07:00
BFlat db9acab4da Merge pull request #9004 from dotCooCoo/fix/retype-even-odd-turned-counters
Retype: a glyph in an even-odd compound matches with only some of its contours reversed
2026-11-22 11:38:53 +07:00
BFlat 90cd5eef57 Merge pull request #9016 from dotCooCoo/fix/dynamic-symbol-part-selection-paint
Symbols: Direct Selection picks a dynamic instance's part where its fill and stroke effects draw it
2026-11-22 11:38:33 +07:00
BFlat f03d04b91b Merge pull request #8996 from dotCooCoo/fix/simplify-smooth-keep-closed-start
Paths: Object > Path > Simplify and Smooth keep a closed path's start
2026-11-22 11:38:13 +07:00
BFlat 37610608f1 Merge pull request #8976 from dotCooCoo/fix/smooth-region-rejects-bad-params
Smooth: path.smoothRegion and path.joinScrub refuse a radius, fidelity or tolerance out of range
2026-11-22 11:37:54 +07:00
BFlat d13a06b2f2 Merge pull request #8963 from dotCooCoo/fix/live-paint-bucket-lent-tool-release
Live Paint: a Cmd-drag cut short keeps the bucket's colors
2026-11-22 11:37:34 +07:00
BFlat 1360f9ac6f Merge pull request #8961 from dotCooCoo/fix/safe-mode-expand-hidden-symbol-art
Expand Appearance: Safe Mode skips art that a group's raster image leaves out
2026-11-22 11:37:14 +07:00
BFlat 789f5033bb Merge pull request #8954 from dotCooCoo/fix/params-textedit-rest
Type: text commands refuse a parameter of the wrong type
2026-11-22 11:36:54 +07:00
BFlat 55064f7f59 Merge pull request #8949 from dotCooCoo/feat/dimension-drag-reposition
Dimension tool: a drag from a dimension already drawn moves it
2026-11-22 11:36:34 +07:00
BFlat b9c9e82f74 Merge pull request #8943 from dotCooCoo/fix/font-version-rescan-and-steady-gate
Fonts: a rescan clears the version record after it publishes its catalog
2026-11-22 11:36:13 +07:00
BFlat 1cf0a2806a Merge pull request #9045 from dotCooCoo/feat/quick-pen-arc-protractor-i9314
Pen: Quick Pen shows a protractor around an arc's center and snaps to its ticks
2026-11-22 10:54:06 +07:00
BFlat 7ad52eacb8 Merge pull request #9017 from dotCooCoo/fix/test262-runner-coverage
Tests: the test262 runner parses and runs the Annex B tests
2026-11-22 10:53:45 +07:00
BFlat f658b42bc6 Merge pull request #9013 from dotCooCoo/feat/psd-invert-threshold-posterize-layers
PSD import: apply Invert, Threshold and Posterize adjustment layers
2026-11-22 10:53:23 +07:00
BFlat 0aa2601eb9 Merge pull request #8995 from dotCooCoo/fix/3d-expand-inflate-bevel-twist-curves
3D: Expand Appearance keeps curves on Inflate faces, interior bevel edges and twist cuts
2026-11-22 10:53:03 +07:00
BFlat 3cc55c480e Merge pull request #8994 from dotCooCoo/fix/family-tool-prefs-keep-valid-counts
Tools: restored Spiral, Rectangular Grid and Polar Grid counts keep the current value
2026-11-22 10:52:41 +07:00
BFlat 980bd43e34 Merge pull request #8979 from dotCooCoo/fix/smooth-never-rougher
Smooth: a drag that reaches only a sliver of the next segment no longer splits it
2026-11-22 10:52:20 +07:00
BFlat 8f27f7c4ba Merge pull request #8978 from dotCooCoo/fix/unembed-keeps-current-mask
Links: Unembed leaves a released or edited clipping mask as it is
2026-11-22 10:51:59 +07:00
BFlat e6e376e1ca Merge pull request #8974 from dotCooCoo/fix/sample-color-stop-of-given-objects
Eyedropper: sampling into a stop of given objects reads their gradient
2026-11-22 10:51:39 +07:00