summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/behaviour/addons.zig8
-rw-r--r--test/behaviour/addons_pdf.zig2
-rw-r--r--test/behaviour/language_servers.zig2
-rw-r--r--test/behaviour/other_files.zig2
-rw-r--r--test/snapshots/find.golden6
5 files changed, 0 insertions, 20 deletions
diff --git a/test/behaviour/addons.zig b/test/behaviour/addons.zig
index 88c477ea..46c8e012 100644
--- a/test/behaviour/addons.zig
+++ b/test/behaviour/addons.zig
@@ -381,8 +381,6 @@ fn dirOf(s: *Session, tmp: *std.testing.TmpDir) ![]const u8 {
test "addons: a picker shows a file of an addon's kind through its kind in the pane it lands in, Esc puts that pane back as it was, and Enter lands as a Look does" {
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
- // A work tree of its own: Find searches it, not the one the test runs in.
- try tmp.dir.createDir(std.testing.io, ".git", .default_dir);
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "notes.txt", .data = "the notes\n" });
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "seven.fake", .data = "1234567" });
var s = try Session.initFile(std.testing.allocator, "x\n");
@@ -425,8 +423,6 @@ test "addons: a picker shows a file of an addon's kind through its kind in the p
test "addons: a picker's row of a file no kind takes and not text shows one line naming it, and the row before's file never stays in the body" {
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
- // A work tree of its own: Find searches it, not the one the test runs in.
- try tmp.dir.createDir(std.testing.io, ".git", .default_dir);
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "notes.txt", .data = "the notes\n" });
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "other.txt", .data = "other text\n" });
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "seven.fake", .data = "1234567" });
@@ -468,8 +464,6 @@ test "addons: a picker's row of a file no kind takes and not text shows one line
test "addons: moving the cursor over pictures in a picker draws only the one it rests on, and a draw of one passed by is dropped whenever it comes back" {
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
- // A work tree of its own: Find searches it, not the one the test runs in.
- try tmp.dir.createDir(std.testing.io, ".git", .default_dir);
const png = "\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x01\x00\x00\x00\x01\x08\x02\x00\x00\x00\x90wS\xde\x00\x00\x00\x0cIDATx\x9cc\xf8\xcf\xc0\x00\x00\x03\x01\x01\x00\xc9\xfe\x92\xef\x00\x00\x00\x00IEND\xaeB`\x82";
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "notes.txt", .data = "the notes\n" });
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "pic1.png", .data = png });
@@ -507,8 +501,6 @@ test "addons: moving the cursor over pictures in a picker draws only the one it
test "addons: Enter on a picture in a picker opens its kind's pane, never its bytes as text in the reading pane (the user's report)" {
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
- // A work tree of its own: Find searches it, not the one the test runs in.
- try tmp.dir.createDir(std.testing.io, ".git", .default_dir);
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "notes.txt", .data = "the notes\n" });
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "pic.ppm", .data = "P6\n2 1\n255\n\x0d\x4d\xe7\x0d\x4d\xe7" });
var s = try Session.initFile(std.testing.allocator, "x\n");
diff --git a/test/behaviour/addons_pdf.zig b/test/behaviour/addons_pdf.zig
index c59b4a93..918d1842 100644
--- a/test/behaviour/addons_pdf.zig
+++ b/test/behaviour/addons_pdf.zig
@@ -307,8 +307,6 @@ test "addons: a PDF under a picker's cursor shows through the pdf addon in the p
try s.loadPdf();
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
- // A work tree of its own: Find searches it, not the one the test runs in.
- try tmp.dir.createDir(std.testing.io, ".git", .default_dir);
const pdf = try std.Io.Dir.cwd().readFileAlloc(std.testing.io, "docs/design.pdf", s.arena.allocator(), .limited(4 << 20));
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "paper.pdf", .data = pdf });
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "notes.txt", .data = "the notes\n" });
diff --git a/test/behaviour/language_servers.zig b/test/behaviour/language_servers.zig
index 7f1eef73..3b786ec4 100644
--- a/test/behaviour/language_servers.zig
+++ b/test/behaviour/language_servers.zig
@@ -386,8 +386,6 @@ test "language-servers: a file of a server's language opened in a pane starts th
const io = std.testing.io;
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
- // A work tree of its own: Find searches it, not the one the test runs in.
- try tmp.dir.createDir(io, ".git", .default_dir);
try tmp.dir.writeFile(io, .{ .sub_path = "a.zig", .data = "const a = 1;\n" });
try tmp.dir.writeFile(io, .{ .sub_path = "b.zig", .data = "const b = 2;\n" });
try tmp.dir.writeFile(io, .{ .sub_path = "c.py", .data = "c = 3\n" });
diff --git a/test/behaviour/other_files.zig b/test/behaviour/other_files.zig
index 95d4de6d..f1bd2ce0 100644
--- a/test/behaviour/other_files.zig
+++ b/test/behaviour/other_files.zig
@@ -25,8 +25,6 @@ test "other-files: kbdin types at the pane with the keyboard and mousein clicks,
test "other-files: kbdin's keys are the user's: SPC f f opens Find's picker in the pane's tag where jumps walk, not the +Search a script's Find opens" {
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
- // A work tree of its own: Find searches it, not the one the test runs in.
- try tmp.dir.createDir(std.testing.io, ".git", .default_dir);
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "a.txt", .data = "a\n" });
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "b.txt", .data = "b\n" });
var s = try Session.initFile(std.testing.allocator, "x\n");
diff --git a/test/snapshots/find.golden b/test/snapshots/find.golden
index aad12aca..493f9e11 100644
--- a/test/snapshots/find.golden
+++ b/test/snapshots/find.golden
@@ -79,8 +79,6 @@
|3: │ │ nothing matches
|4: │ │
|5: │ │
-|6: │ │
-|7: │ │
|40: ⏎ lands here · its text is the preview · S-⏎ a new pane 1 message · SPC h m
== snap cancel grid=120x41 cursor=7,2
|1: here.txt:1 › Find zqm 2/3 › /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Keep Del
@@ -88,8 +86,6 @@
|3:
|4:
|5:
-|6:
-|7:
|40: ✓ /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Find 1 message · SPC h m
== snap topbar grid=120x41 cursor=14,2
|1: ^ here.txt:1 › Find zqm 2/3 › /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Keep Del
@@ -97,6 +93,4 @@
|3: │ │ nothing matches
|4: │ │
|5: │ │
-|6: │ │
-|7: │ │
|40: ⏎ lands here · its text is the preview · S-⏎ a new pane 1 message · SPC h m