summaryrefslogtreecommitdiff
path: root/test/column_drag.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/column_drag.zig')
-rw-r--r--test/column_drag.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/column_drag.zig b/test/column_drag.zig
index 94d61827..7f5b6e94 100644
--- a/test/column_drag.zig
+++ b/test/column_drag.zig
@@ -72,7 +72,7 @@ test "column grip drag moves only its interval and keeps tag caret with the colu
const stale = headerMouse(layer, 4, .press);
p.update(.{ .mouse = headerMouse(layer, 10, .press) });
p.update(.{ .mouse = headerMouse(layer, 10, .release) });
- try std.testing.expectEqual(@as(?usize, 1), p.header_column);
+ try std.testing.expectEqual(@as(?usize, 1), p.headerColumn());
const caret = pardes.tagline.focusedHeader(p).?.cur_col;
const anchor = pardes.tagline.focusedHeader(p).?.vsel;
const scroll = p.header_scroll;
@@ -90,14 +90,14 @@ test "column grip drag moves only its interval and keeps tag caret with the colu
mouse(p, .release, target);
try expectOrder(p, &before, &.{ 0, 2, 3, 1 });
try std.testing.expectEqual(active, p.active);
- try std.testing.expectEqual(@as(?usize, 3), p.header_column);
+ try std.testing.expectEqual(@as(?usize, 3), p.headerColumn());
try std.testing.expectEqual(caret, pardes.tagline.focusedHeader(p).?.cur_col);
try std.testing.expectEqual(anchor, pardes.tagline.focusedHeader(p).?.vsel);
try std.testing.expectEqual(scroll, p.header_scroll);
// The old tag envelope must not edit the new occupant of its old index,
// including the interval before hosts request another rendered frame.
p.update(.{ .mouse = stale });
- try std.testing.expectEqual(@as(?usize, 3), p.header_column);
+ try std.testing.expectEqual(@as(?usize, 3), p.headerColumn());
try std.testing.expectEqual(caret, pardes.tagline.focusedHeader(p).?.cur_col);
_ = try p.render(frame.allocator());
try std.testing.expectEqual(before[1].serial, (try tagLayer(p, 3)).serial);
@@ -107,7 +107,7 @@ test "column grip drag moves only its interval and keeps tag caret with the colu
mouse(p, .drag, back);
mouse(p, .release, back);
try expectOrder(p, &before, &.{ 0, 1, 2, 3 });
- try std.testing.expectEqual(@as(?usize, 1), p.header_column);
+ try std.testing.expectEqual(@as(?usize, 1), p.headerColumn());
try std.testing.expectEqual(caret, pardes.tagline.focusedHeader(p).?.cur_col);
try std.testing.expectEqual(active, p.active);
// A structural change between press and release must not retarget the
@@ -116,7 +116,7 @@ test "column grip drag moves only its interval and keeps tag caret with the colu
layout.reorderColumn(p, 1, 2);
mouse(p, .release, p.col_x[0] + config.GUTTER);
try expectOrder(p, &before, &.{ 1, 0, 2, 3 });
- try std.testing.expectEqual(@as(?usize, 0), p.header_column);
+ try std.testing.expectEqual(@as(?usize, 0), p.headerColumn());
try std.testing.expect(p.drag == .none);
}