summaryrefslogtreecommitdiff
path: root/src/layout.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout.zig')
-rw-r--r--src/layout.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/layout.zig b/src/layout.zig
index dfbea067..7719af38 100644
--- a/src/layout.zig
+++ b/src/layout.zig
@@ -1650,6 +1650,7 @@ fn weightsOf(p: *const Pardes) [MAX_COLS]u64 {
}
test "collapse transfers height upward and restores the original layout" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 32 });
defer p.deinit();
_ = try p.newShell(1, "");
@@ -1674,6 +1675,7 @@ test "collapse transfers height upward and restores the original layout" {
}
test "collapse changes only one neighbor at the top middle and bottom" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
for (0..4) |target| {
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 58 });
defer p.deinit();
@@ -1698,6 +1700,7 @@ test "collapse changes only one neighbor at the top middle and bottom" {
}
test "collapse skips folded neighbors and expansion reclaims only its neighbor" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 62 });
defer p.deinit();
for (1..5) |id| {
@@ -1725,6 +1728,7 @@ test "collapse skips folded neighbors and expansion reclaims only its neighbor"
}
test "collapse local transfers remain bounded through repeated tiny window resizes" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 58 });
defer p.deinit();
for (1..5) |id| {
@@ -1772,6 +1776,7 @@ test "collapse expansion is limited to space available in one neighbor" {
}
test "collapse single and all panes leave unused column space" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 32 });
defer p.deinit();
toggleCollapse(p, 0);
@@ -1788,6 +1793,7 @@ test "collapse single and all panes leave unused column space" {
}
test "collapse survives tiny resizes" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 32 });
defer p.deinit();
_ = try p.newShell(1, "");
@@ -1813,6 +1819,7 @@ test "collapse survives tiny resizes" {
}
test "collapse can be expanded by dragging its boundary" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 32 });
defer p.deinit();
_ = try p.newShell(1, "");
@@ -1998,6 +2005,7 @@ test "an attachment survives Dump and Restore, and one left away from its owner
}
test "a new column takes width only from the column that created it" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
const p = try Pardes.init(std.testing.allocator, .{ .cols = 124, .rows = 24 });
defer p.deinit();
@@ -2061,6 +2069,7 @@ test "a new column takes width only from the column that created it" {
}
test "Newcol refuses an unsplittable restored weight before spawning" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
const p = try Pardes.init(std.testing.allocator, .{ .cols = 200, .rows = 20 });
defer p.deinit();
@@ -2092,6 +2101,7 @@ test "Newcol refuses an unsplittable restored weight before spawning" {
}
test "repeated non-dyadic column splits preserve every unrelated boundary" {
+ if (pardes.Term.ops == null) return error.SkipZigTest; // a shell
const p = try Pardes.init(std.testing.allocator, .{ .cols = 979, .rows = 20 });
defer p.deinit();