diff --git a/crates/thing-testkit/fixtures/README.md b/crates/thing-testkit/fixtures/README.md index edb41dc..72ce72e 100644 --- a/crates/thing-testkit/fixtures/README.md +++ b/crates/thing-testkit/fixtures/README.md @@ -8,11 +8,21 @@ frozen, and a normal test run only compares and reads them. The rows are the fix | File | Holds | Map rules | |---|---|---| | `f01-swarm-dashboard.surface.cc` | One surface: a Grid Box root, a Text bound with a Number Format, a Repeat over a RecordsSource prefix whose template binds Item members, and a Button whose CommandRef is declared | 6, 9 | +| `f02-login-effect.surface.cc` | One surface (a Text TextInput and a Button whose command captures it, plus the declared resume command), the CommandInvocation of it, and its two results: Pending, then Completed with an `OpenExternal` effect whose `resume` names the declared command | 1, 2 | +| `f03-input-target.surface.cc` | One surface (an Image over a position: absolute Box with insets, holding a bound label) and the AssetCatalog the Image names | - | +| `f04-form.surface.cc` | One surface (Toggle, Slider, Select with literal options, TextInput of Number kind) and one command capturing all four, its invocation, and a Completed result declaring `clear_drafts` | 1 | +| `f05-modal-overlay.surface.cc` | One surface with a modal Overlay anchored to the viewport, a dismiss CommandRef and two Buttons inside | - | +| `f06-scroll-list.surface.cc` | One surface: a Box with `overflow: scroll` holding a Repeat over a RecordsSource prefix, template keyed by the item's `id` (the 1,000 items are provider state, not here) | - | +| `f07-plot.surface.cc` | One surface with a Plot of each mark (Line, Bar, Area) over a bound series, with and without axis bounds | - | +| `f08-embed-viewport.surface.cc` | One surface: an Embed of declared fixed size as a leaf between two Texts | - | | `f09-composition-stack.surface.cc` | One surface whose Use passes one argument of each ArgValue arm and a Slot holding a second Use (two levels), and the publisher CompositionDocument both name | 5 | | `f10-hostile.surface.cc` | Four surfaces, one hostile shape each: an undeclared CommandRef, a duplicate id after expansion, an unresolved Use, and a Bind whose schema no fixture provides; plus the one composition (`dup`) the duplicate-id surface expands | 4, 5, 6 | +| `f11-deep.surface.cc` | One surface: the deepest Box chain whose payload CultCache's `check_payload_depth` accepts, found by the builder | - | +| `f11-deep-refused.bin` | The payload of the same chain one Box level deeper, raw: `check_payload_depth` refuses it at depth 257 and so does CultCache. No store can hold it | - | +| `f12-text-edge.surface.cc` | One surface of five Text nodes: bidi (Hebrew and Arabic in Latin), CJK wide characters, combining marks, emoji ZWJ sequences, and a paragraph long enough to wrap | - | -A surface whose bytes the contract refuses (an unknown union arm) cannot live in a store: that -case is `crates/thing-contract/tests/goldens/node-unknown-arm.bin`, read in place and fed to +A payload the contract refuses cannot live in a store: f11's refused payload is a raw file here, and an +unknown union arm is `crates/thing-contract/tests/goldens/node-unknown-arm.bin`, read in place and fed to `MemState::put_raw`. ## Regenerate diff --git a/crates/thing-testkit/fixtures/f02-login-effect.surface.cc b/crates/thing-testkit/fixtures/f02-login-effect.surface.cc new file mode 100644 index 0000000..213e0fb Binary files /dev/null and b/crates/thing-testkit/fixtures/f02-login-effect.surface.cc differ diff --git a/crates/thing-testkit/fixtures/f03-input-target.surface.cc b/crates/thing-testkit/fixtures/f03-input-target.surface.cc new file mode 100644 index 0000000..eb8c30b Binary files /dev/null and b/crates/thing-testkit/fixtures/f03-input-target.surface.cc differ diff --git a/crates/thing-testkit/fixtures/f04-form.surface.cc b/crates/thing-testkit/fixtures/f04-form.surface.cc new file mode 100644 index 0000000..1f4f535 Binary files /dev/null and b/crates/thing-testkit/fixtures/f04-form.surface.cc differ diff --git a/crates/thing-testkit/fixtures/f05-modal-overlay.surface.cc b/crates/thing-testkit/fixtures/f05-modal-overlay.surface.cc new file mode 100644 index 0000000..c3ba4e1 Binary files /dev/null and b/crates/thing-testkit/fixtures/f05-modal-overlay.surface.cc differ diff --git a/crates/thing-testkit/fixtures/f06-scroll-list.surface.cc b/crates/thing-testkit/fixtures/f06-scroll-list.surface.cc new file mode 100644 index 0000000..022b44f Binary files /dev/null and b/crates/thing-testkit/fixtures/f06-scroll-list.surface.cc differ diff --git a/crates/thing-testkit/fixtures/f07-plot.surface.cc b/crates/thing-testkit/fixtures/f07-plot.surface.cc new file mode 100644 index 0000000..5a23735 Binary files /dev/null and b/crates/thing-testkit/fixtures/f07-plot.surface.cc differ diff --git a/crates/thing-testkit/fixtures/f08-embed-viewport.surface.cc b/crates/thing-testkit/fixtures/f08-embed-viewport.surface.cc new file mode 100644 index 0000000..4d44b35 Binary files /dev/null and b/crates/thing-testkit/fixtures/f08-embed-viewport.surface.cc differ diff --git a/crates/thing-testkit/fixtures/f11-deep-refused.bin b/crates/thing-testkit/fixtures/f11-deep-refused.bin new file mode 100644 index 0000000..62334e1 Binary files /dev/null and b/crates/thing-testkit/fixtures/f11-deep-refused.bin differ diff --git a/crates/thing-testkit/fixtures/f11-deep.surface.cc b/crates/thing-testkit/fixtures/f11-deep.surface.cc new file mode 100644 index 0000000..fd8a88c Binary files /dev/null and b/crates/thing-testkit/fixtures/f11-deep.surface.cc differ diff --git a/crates/thing-testkit/fixtures/f12-text-edge.surface.cc b/crates/thing-testkit/fixtures/f12-text-edge.surface.cc new file mode 100644 index 0000000..73a766c Binary files /dev/null and b/crates/thing-testkit/fixtures/f12-text-edge.surface.cc differ