diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-01 22:44:19 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-10 09:17:07 -0300 |
| commit | d59397d4146ffa23adbbe6dc99c64ebb22a93b2d (patch) | |
| tree | a06984bf172a6c894c1586d58aad02ec302b6c2d /build/snap.zig | |
| parent | cbcdf01764e2e144a821643c3a8e9a5ad39eda2e (diff) | |
| download | pardes-d59397d4146ffa23adbbe6dc99c64ebb22a93b2d.tar.gz pardes-d59397d4146ffa23adbbe6dc99c64ebb22a93b2d.zip | |
add vanilla DOM web backend
Diffstat (limited to 'build/snap.zig')
| -rw-r--r-- | build/snap.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build/snap.zig b/build/snap.zig index a721f483..2c135fef 100644 --- a/build/snap.zig +++ b/build/snap.zig @@ -39,18 +39,17 @@ pub fn addTty(b: *std.Build, opts: struct { b.step("snap", "run the snapshot parity suite (-- --update regenerates goldens)").dependOn(&run_snap.step); } -/// Browser regression suite: make an isolated web build from the real TTY dump -/// captured after running `git ls-files '*.zig'`, with the Zig-only tree-sitter -/// tier. The dependency-free CDP harness then drives its .snap script through -/// real Chromium touch events. This recursive build selects `web`, not -/// `web-snap`, so it bottoms out after one level. +/// Browser regression suite: make an isolated freestanding web build from the +/// real TTY dump captured after running `git ls-files '*.zig'`. The +/// dependency-free Chrome/CDP driver then exercises real DOM pointer events. +/// This recursive build selects `web`, not `web-snap`, so it bottoms out. pub fn addWeb(b: *std.Build) void { const build_web_snap = b.addSystemCommand(&.{ b.graph.zig_exe, "build", "web", "-Dplatform=web", - "-Dtarget=wasm32-emscripten", + "-Dtarget=wasm32-freestanding", "-Dtree-sitter=zig", "-Ddump=test/web-snapshots/source-list.dump.zon", "-p", @@ -67,4 +66,5 @@ pub fn addWeb(b: *std.Build) void { run_web_snap.step.dependOn(&build_web_snap.step); if (b.args) |args| run_web_snap.addArgs(args); b.step("web-snap", "run browser touch/LOOK snapshots (-- --update regenerates goldens)").dependOn(&run_web_snap.step); + b.step("web-e2e", "run the Chrome-driven DOM end-to-end suite").dependOn(&run_web_snap.step); } |
