diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 11:50:43 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 15:17:05 -0300 |
| commit | ecdb0996147f319a4427273bf276e1fc5bf89156 (patch) | |
| tree | 0b1be457ce4b8ce99db4acd713ff2620cde2d015 /test/output.zig | |
| parent | 2bd4066a932ec8fc401e4b85e9f8441b17df3cfb (diff) | |
| download | pardes-ecdb0996147f319a4427273bf276e1fc5bf89156.tar.gz pardes-ecdb0996147f319a4427273bf276e1fc5bf89156.zip | |
effects out, the panel transitions: the eleven Panel words in both tracks go, with the core's Presentation (tracks, the frozen previous grid, cell diffs, the acknowledged-geometry pending guard, and the pointer's mapping through a moving pane, so a pointer's cell is the cell it is over), draw.zig's core-composed character effects, animation.zig's transition half, the Surface's tracks and previous grid, the tty's compositor (src/tui/panel_compositor.zig: the glide's rows move into tui.zig) and the window's track groups, frozen old layers, last-frame image snapshot, transition instance fields and shader paths (ui.vert, ui.frag's crossfade, image.vert and image.frag, the transition-<n>.ppm capture); acknowledgePanelPresentation becomes `presented`, which a frontend calls after drawing a frame (a drag's moving end and a look-hover follow what is under the pointer now), and its tape site with it; the pointer tape site goes; GUI golden 18-mid-transition goes, ttyhelp's golden loses the `SPC a` rows (its wait is on `SPC Y` now), the window monkey loses PanelSlide, and the settings behaviour test's floor of on/off words is ten
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/output.zig')
| -rw-r--r-- | test/output.zig | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/test/output.zig b/test/output.zig index e998ac66..c72668b4 100644 --- a/test/output.zig +++ b/test/output.zig @@ -94,7 +94,6 @@ test "output callers opt into location highlighting instead of matching prose co defer p.deinit(); p.locations_config.layout = .@"inline"; _ = try p.setTestFile("ordinary\n"); - p.presentation.enabled = false; if (origin == .cmd and origin.cmd == .LocationsConfig) { p.locations_config.context = 5; try std.testing.expect(p.executeBuiltinLine(0, "LocationsConfig")); @@ -125,7 +124,6 @@ test "location producers retain rendered location match and diagnostic styles" { defer p.deinit(); p.locations_config.layout = .@"inline"; _ = try p.setTestFile("ordinary\n"); - p.presentation.enabled = false; const diagnostic = origin == .query and origin.query == .diagnostics; const code = if (diagnostic) "warning: unused value" else "const value = 42;"; try panes.Output.fillResults(p, 0, "/", origin, "styles", try std.fmt.allocPrint(p.gpa, "source.zig:3:1-3 {s}\n", .{code}), null); @@ -549,7 +547,7 @@ test "Config with no startup file opens a pane of its name, and Save makes its d try std.testing.expectEqual(std.Io.File.Kind.directory, made.kind); } -test "a window's setting builtins (TaglineSize, Font, transitions) reach the report DumpConfig writes" { +test "a window's setting builtins (TaglineSize, Font) reach the report DumpConfig writes" { const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true }); defer p.deinit(); p.locations_config.layout = .@"inline"; @@ -586,14 +584,7 @@ test "a window's setting builtins (TaglineSize, Font, transitions) reach the rep try std.testing.expect(p.executeBuiltinLine(p.active, "DumpConfig")); const report = p.panes[p.active].?.file.?.content; // The toggles, Theme and Shell are test/behaviour/settings.zig's, through - // the root ctl; what is left is a window's (fonts, transitions). - const transition = if (!builtins.viewCapabilities(p).panel_transitions) - "PanelSlide unsupported\n" - else if (p.settings.panel_transition == .off) - "PanelSlide off\n" - else - try std.fmt.bufPrint(&buf, "{s} on\n", .{config.Runtime.findAction(.{ .transition = p.settings.panel_transition }).?.word}); - try std.testing.expect(std.mem.indexOf(u8, report, transition) != null); + // the root ctl; what is left is a window's (fonts). const tagline = if (!builtins.viewCapabilities(p).tagline_font_size) "TaglineSize unsupported\n" else @@ -653,7 +644,6 @@ test "LookNext/LookPrev skips formatted context and selects comment match locati const source = try p.setTestFile(text); p.gpa.free(source.file.?.path); source.file.?.path = try p.gpa.dupe(u8, "/look-walk-context.zig"); - p.presentation.enabled = false; p.locations_config = .{ .layout = .@"inline", .context = 1, .tscontext = true, .tslocations = tslocations }; const path = source.file.?.path; const input = try std.fmt.allocPrint(p.gpa, "{s}:4:9 {s}\n{s}:6:9 {s}\n", .{ @@ -1146,7 +1136,6 @@ test "LSP occurrence tint follows the supplied source span through context" { p.gpa.free(source.file.?.path); source.file.?.path = try p.gpa.dupe(u8, "/occurrence.zig"); p.locations_config = .{ .layout = .@"inline", .context = 1, .tscontext = true }; - p.presentation.enabled = false; var input: std.Io.Writer.Allocating = .init(p.gpa); defer input.deinit(); const start = std.mem.lastIndexOf(u8, snippet, "foo").?; @@ -1257,7 +1246,6 @@ test "stacked search and LSP results retain source tint navigation and dump owne defer p.deinit(); try std.testing.expectEqual(.stacked, p.locations_config.layout); p.locations_config = .{ .context = 1, .tscontext = true, .tslocations = visible }; - p.presentation.enabled = false; const source = try p.setTestFile(source_text); p.gpa.free(source.file.?.path); source.file.?.path = try p.gpa.dupe(u8, "/stacked-界.zig"); |
