From 3f1533813b6692a736251e4d467a7f108229ddee Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 11:40:11 -0300 Subject: targets: the DOM web shell goes (src/web.zig and src/web/, its harnesses web_harness, web_snapshot, web_driver_test and web-snapshots/, tools/web_fixture.py, -Dplatform=web, -Ddump, and the web, web-harness, web-snap, web-e2e and web-driver-test steps), and with it what only a freestanding build needed: `hosted` and every guard on it (every build has a host now), memory's stack-fallback arenas and reduced_target sizes, the emscripten main, the tree-sitter libc shim and the stb stub, lsp's has_client, the web arms of the platform switches (-Dplatform is tui, gui or macos); the macOS files pass zig ast-check; docs/web.md is a paragraph on what it was Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/output.zig | 6 ------ 1 file changed, 6 deletions(-) (limited to 'test/output.zig') diff --git a/test/output.zig b/test/output.zig index 3d92e867..eb4da9b3 100644 --- a/test/output.zig +++ b/test/output.zig @@ -493,7 +493,6 @@ fn configFixture(tmp: *std.testing.TmpDir, content: ?[]const u8, buf: *[4096]u8) } test "Config opens the startup file, and a second Config goes back to its pane" { - if (comptime !pardes.hosted) return; var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); var buf: [4096]u8 = undefined; @@ -521,7 +520,6 @@ test "Config opens the startup file, and a second Config goes back to its pane" } test "Config with no startup file opens a pane of its name, and Save makes its directory" { - if (comptime !pardes.hosted) return; var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); var buf: [4096]u8 = undefined; @@ -573,7 +571,6 @@ test "EffectCode lists readable virtual sources used by this backend" { .tui => "/virtual/src/tui/panel_compositor.zig", .gui => "/virtual/shaders/ui.vert.glsl", .macos => "/virtual/src/macos/Sources/ScenePostprocessor.swift", - .web => unreachable, }; try std.testing.expect(std.mem.indexOf(u8, out.content, backend_source) != null); var paths = std.mem.tokenizeScalar(u8, out.content, '\n'); @@ -759,7 +756,6 @@ test "LookNext/LookPrev skips formatted context and selects comment match locati } test "LookNext/LookPrev selects one output location per row and opens nothing" { - if (platform == .web) return; var cwd_buf: [4096]u8 = undefined; var path_buf: [4096]u8 = undefined; const paths = try projectPaths(&cwd_buf, &path_buf); @@ -794,7 +790,6 @@ test "LookNext/LookPrev selects one output location per row and opens nothing" { } test "LookPrev exactly reverses LookNext across output panes and the ring seam" { - if (platform == .web) return; var cwd_buf: [4096]u8 = undefined; var path_buf: [4096]u8 = undefined; const paths = try projectPaths(&cwd_buf, &path_buf); @@ -985,7 +980,6 @@ test "Look ignores slash-only comment markers while retaining root and real path for ([_][]const u8{ "(//),", "///!" }) |marker| try std.testing.expectEqual(@as(?look.Span, null), look.wordSpan(null, marker, ".", &realbuf)); try std.testing.expectEqual(@as(?look.Span, null), look.lineSpan(null, " // ordinary comment", ".", &realbuf)); - if (platform == .web) return; try std.testing.expect(look.resolve(null, "/", ".", &realbuf) == .dir); try std.testing.expect(look.wordSpan(null, "/", ".", &realbuf) != null); var pathbuf: [4096]u8 = undefined; -- cgit v1.3