diff options
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"); |
