diff options
Diffstat (limited to 'test/behaviour/terminals.zig')
| -rw-r--r-- | test/behaviour/terminals.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/behaviour/terminals.zig b/test/behaviour/terminals.zig index f6bbdfa0..a2f7e951 100644 --- a/test/behaviour/terminals.zig +++ b/test/behaviour/terminals.zig @@ -13,7 +13,11 @@ test "terminals: Togglettymode and Ctrl-B share the mode's transitions, from the defer s.deinit(); const n = try s.focused(); const ctl = s.at("/pane/{d}/ctl", .{n}); - try std.testing.expect(std.mem.indexOf(u8, try s.read(s.at("/pane/{d}/tag", .{n})), " Mode ") != null); + // Mode is a word of its kind's, not its tag's (UX K'3): the tag is + // Del, then its own text, Term. + const tag = try s.read(s.at("/pane/{d}/tag", .{n})); + try std.testing.expect(std.mem.indexOf(u8, tag, " Mode ") == null); + try std.testing.expect(std.mem.indexOf(u8, tag, " Del Term") != null); try s.write(s.at("/pane/{d}/tag", .{n}), " Togglettymode"); try std.testing.expectEqualStrings("tty", try mode(&s, n)); try s.write(ctl, "Togglettymode\n"); |
