grid: packing, pinning, resize steps (port of Layout.js and app.py's grid logic). gesture: pointer state machine (tap, long press, drag, release, swipe). updater: release/version parsing and the update decision. vdom: pure virtual DOM with an HTML-text renderer for tests. app: Elm-style Model/Msg/update/view with effects as data, persistence (JSON layout, import of the old WebView build's localStorage), drawer/search, menus, drag and resize. 60 headless tests drive it through pointer input. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
19 lines
390 B
MoonBit
19 lines
390 B
MoonBit
///|
|
|
test "to_html" {
|
|
let n : Node[Int] = el(
|
|
"div",
|
|
classes=["a", cls_if("b", false), cls_if("c", true)],
|
|
handlers={ ..Handlers::none(), tap: Some(1) },
|
|
children=[el("span", children=[text("x < y")]), text("tail")],
|
|
)
|
|
inspect(
|
|
to_html(n),
|
|
content=(
|
|
#|<div class="a c" on="tap">
|
|
#| <span>x < y</span>
|
|
#| tail
|
|
#|</div>
|
|
),
|
|
)
|
|
}
|