From d59397d4146ffa23adbbe6dc99c64ebb22a93b2d Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 1 Aug 2026 22:44:19 -0300 Subject: add vanilla DOM web backend --- build/snap.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build') 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); } -- cgit v1.3