What it does
inspector_probe
Helpers the Inspector suites share (@builtin::tests.fixtures.inspector_probe).
| Helper | What it is for |
|---|---|
callbackIds(node) | every string-valued callback prop (onClick, onChange, onDrop, onDrag) in a published edui tree, depth first |
idEndingWith(tree, suffix) | the callback id ending with suffix, to hand to app:dispatch; raises naming the ids the tree holds |
texts(node) | every label text in a tree, depth first |
hasText(tree, needle) | whether any label text contains needle |
rowsHave(rows, needle) | hasText over a section's rows |
mount(Test, render) | an edui app publishing render(), unmounted at cleanup; answers (app, lastTree) |
renderAsset(Test, ref) | mount over the full Inspector of an asset (Inspector.renderAsset) |
ids(sections) | the ids of a section list, space-joined |
section(ref, id) | builds one section of an asset's Inspector through Inspector.buildSection; answers (rows, ctx) and raises naming the ids present, or the build's problem |
pngOf(size, hex) | a solid square PNG |
texture(Test, stem, size?, hex?) | a scratch texture asset, removed at cleanup |
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.