Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,551 changes: 22 additions & 3,529 deletions packages/rsnap-overlay/src/overlay/tests.rs

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions packages/rsnap-overlay/src/overlay/tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Overlay Test Layout

`tests.rs` owns shared fixtures, helper functions, and module declarations only.
New overlay behavior tests should live in the narrowest matching behavior module:

- `annotation_runtime.rs`: frozen annotation editing, text input, brush modeling, undo/redo.
- `export_actions.rs`: PNG/OCR/export authority and host-effect requests.
- `live_runtime.rs`: live-mode pointer, loupe, hotkey, and native input routing.
- `rendering_behaviors/`: visual/layout contracts split by rendering domain.
- `scroll_capture_runtime.rs`, `scroll_input_runtime.rs`, `stream_refresh_runtime.rs`: scroll capture runtime state, input freshness, and stream refresh policy.
- `self_capture_runtime.rs`: self-capture filtering, window matte capture, and deferred worker refresh.
- `toolbar_runtime.rs`: toolbar window visibility, pointer state, and drag eligibility.
- `worker_*_runtime.rs`: worker scheduling and observation contracts.

Prefer table-driven coverage when cases share the same entry point, branch shape,
and externally observable result. Keep separate tests when similar fixtures protect
different user-visible contracts, state transitions, filesystem/host effects, or
failure classifications.
Loading
Loading