Repository navigation
tests: the rest of tests/it on testing::Driver (#373, PR E) - #431
Merged
Merged
Conversation
…pop_out, style onto testing::Driver (#373) Same events in the same frames: support drivers run no frames after an action, so every count is explicit. mount's paste module stays on the rig (it installs a fake clipboard in the layout, which a driver does not expose). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PWiKKe8zfqGfVMCSC5L3up
…ans, icons, gallery, children, field_box, style_switch, typeset, vlist_ports, tabular_nums, press_bubble onto testing::Driver (#373) Same events in the same frames: support drivers run no frames after an action, so every count is explicit. Points past the window's edge (a hover in debug, a drag in markdown) keep kittest's raw calls, since the driver refuses them. Two harnesses stay on kittest: regions' two LayoutStates, and layout_animation's tracked-node count, which needs the driver's LayoutState. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PWiKKe8zfqGfVMCSC5L3up
…d the tracked-nodes test run on a driver Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PWiKKe8zfqGfVMCSC5L3up
…ts, accordion_example, selection, control_size, reduced_motion, field_text, edits, controls, field_focus, handlers, long_list_example, state_stable, autosuggest, state, focus_on_appear, inert_look, widgets, menu_offset, underline, escape_field, line_clamp, text_field_ring, field_focus_example, progress, docs_embed, kaolin_sidebar, headless, overlay's menu_example) onto testing::Driver (#373) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PWiKKe8zfqGfVMCSC5L3up
…driver helpers; unused rig helpers deleted The old Rig, its constructors and the helpers that take it stay only for what the design note leaves on it: snapshots (pixel goldens), the fuzz harness, and sweep's grid harness that fuzz builds on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PWiKKe8zfqGfVMCSC5L3up
The whole_frame closures in continuity and kaolin_sidebar answer their layout's frame, as the driver now asks. Main's changes since, to the files this branch moves: - #403's commit policy: focus_select's stepper tests commit with Enter (`commit`), and edits.rs's three new readout tests, on the driver with this branch's frame counts; - #360's gallery test, renamed to the_sections_wrap_inside_the_aside with five segments, in the driver's form. Main has also added tests on the old rig that this branch's deletions would break: badge, hover_anchored, hover_card and refused. They stay on the rig for now, as snapshots and fuzz do, so the helpers they use come back: ReducedMotion and the rig's reduced_motion, harness_scaled_stepped and drag. Moving those four files onto the driver is left for later. Test outcomes equal driver-373d's after its merge; none failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LesfK54UWq1haPSEr9X22o
This was referenced Nov 19, 2026
One conflict, pop_out.rs: main's #327 window helper beside this branch's Driver type, and the child's now-optional position. #327's new pop-out tests, written on the old rig, are carried onto the driver (state_mut -> app_mut, step -> frames(1), run_steps(n) -> frames(n), rect_of -> rect(Target)). Outcomes: 2368, none failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LesfK54UWq1haPSEr9X22o
#382 added notify's tests on the old rig, using Rig::observe, which this branch deleted as unused. Like badge, hover_anchored, hover_card and refused, notify stays on the rig for now, and observe comes back for it. Outcomes: 2386, none failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LesfK54UWq1haPSEr9X22o
Owner
Author
|
Approved by the user on identical test outcomes (2026-11-19); notify's new tests stay on the rig with the #432 follow-up. GitHub's required checks pass on the branch merged with current main. Merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #373 (PR E of the split in the design note).
Stacked on PR D (
driver-373d). The commits of this PR are the ones afterdriver-373d.What
The rest of
tests/itmoves ontotesting::Driver. These are mostly constructor swaps:menu_examplemodule.The clipboard tests and mount's paste module install their
FakeClipboardthroughDriver::layout().Deleted from
support:harness_scaled_stepped,press,release,drag,galley_of,galleys_of,placed_galleys,part_rect,flatten_all;observehook andReducedMotion.The leftover local copies in the migrated files now use support's helpers.
What stays on the old rig, and why
The note leaves some files below the driver, and the old
support::harness*,Rig,FrameRig,click_node,hover_overandhover_nodestay for them:grid_harnessfuzz builds on.The note expected the old constructors to be deleted in this PR. They can only go when snapshots and fuzz move, which the note leaves for later. So
support/mod.rsis 857 lines, not the ~250 the note estimated. It carries both the drivers and the rig those three files need.Also left on raw kittest:
LayoutStateevery frame, and the other is egui-style plumbing.LayoutStates.World/Layers, screenshot, draw and contract, as the note says.Size, against the note's estimate
Across C–E,
tests/itcomes out about −840 lines net (C +3139/−3240, D +3695/−4151, E +3323/−3637), against the note's estimate of −1,500. Writing the frame counts out, rather than hiding them in per-file helpers, costs lines. It also makes the latersettle()change a visible, per-call diff.Checks
test … ok|FAILED|ignoredlines, compared with PR D. The diff is empty. Across C, D and E together, compared withorigin/main, the only differences are PR B's added tests and testing: split a closure-free PlacedFrame out of Placed (#373, PR A) #408's renamed doctests.cargo xtask ci: exit 0.Update: merged onto the updated D
I carried this branch on from the stopped agent. It is merged with
driver-373d(D, now on C, #413 and main).whole_frameclosures in continuity and kaolin_sidebar answer their layout's frame.the_sections_wrap_inside_the_aside, five segments).ReducedMotionwith the rig'sreduced_motion,harness_scaled_steppedanddrag. Moving those four files onto the driver is a follow-up for you to schedule.tests/uiline differed only by log interleaving.🤖 Generated with Claude Code
https://claude.ai/code/session_01LesfK54UWq1haPSEr9X22o