Add notifications.
This commit is contained in:
@@ -150,7 +150,7 @@ pub fn build(b: *std.Build) void {
|
||||
paths_tests.root_module.addImport("glib", gobject.module("glib2"));
|
||||
test_step.dependOn(&b.addRunArtifact(paths_tests).step);
|
||||
|
||||
// The palette is the third root: a table of colours, the rules for
|
||||
// The palette is the third root: a table of colors, the rules for
|
||||
// resolving one, and the CSS it is written out as. It reaches libghostty-vt
|
||||
// for the terminal's own default palette and nothing else, so it tests
|
||||
// without a display in the same way the two above do.
|
||||
@@ -225,6 +225,23 @@ pub fn build(b: *std.Build) void {
|
||||
});
|
||||
test_step.dependOn(&b.addRunArtifact(store_tests).step);
|
||||
|
||||
// The mute rules are their own root. Whether a tab is silent at this instant,
|
||||
// and what its row menu says about that, is arithmetic on a deadline — and
|
||||
// it is the half of notifications that can be wrong without anyone noticing,
|
||||
// since the symptom is a popup that didn't arrive. It reaches gio to hand a
|
||||
// notification to the session, which is the part these tests leave alone.
|
||||
const notify_tests = b.addTest(.{
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/notify.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
.link_libc = true,
|
||||
}),
|
||||
});
|
||||
notify_tests.root_module.addImport("gio", gobject.module("gio2"));
|
||||
notify_tests.root_module.addImport("glib", gobject.module("glib2"));
|
||||
test_step.dependOn(&b.addRunArtifact(notify_tests).step);
|
||||
|
||||
const emoji_tests = b.addTest(.{
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/emoji.zig"),
|
||||
|
||||
Reference in New Issue
Block a user