also looking at this
feat(notifications): make the banner answerable — clicks, buttons, and a crash
#74
8 files
+942
-17
| @@ -695,6 +695,17 @@ pub fn build(b: *std.Build) void { | ||
| 695 | 695 | }); |
| 696 | 696 | cli_unit_tests.root_module.link_libc = true; |
| 697 | 697 | |
| 698 | // Notification action buttons: which category a set of buttons forms, and | |
| 699 | // what a response means. Pure, so the whole thing is provable without | |
| 700 | // posting a banner or clicking one. | |
| 701 | const notification_actions_tests = b.addTest(.{ | |
| 702 | .root_module = b.createModule(.{ | |
| 703 | .root_source_file = b.path("src/notification_actions.zig"), | |
| 704 | .target = target, | |
| 705 | .optimize = optimize, | |
| 706 | }), | |
| 707 | }); | |
| 708 | ||
| 698 | 709 | // The conformance test: what craft declares, against what it dispatches. |
| 699 | 710 | const capability_conformance_tests = b.addTest(.{ |
| 700 | 711 | .root_module = b.createModule(.{ |
| @@ -1069,6 +1080,7 @@ pub fn build(b: *std.Build) void { | ||
| 1069 | 1080 | const run_external_link_tests = b.addRunArtifact(external_link_tests); |
| 1070 | 1081 | const run_webview_recovery_tests = b.addRunArtifact(webview_recovery_tests); |
| 1071 | 1082 | const run_request_context_tests = b.addRunArtifact(request_context_tests); |
| 1083 | const run_notification_actions_tests = b.addRunArtifact(notification_actions_tests); | |
| 1072 | 1084 | const run_cli_unit_tests = b.addRunArtifact(cli_unit_tests); |
| 1073 | 1085 | const run_lifecycle_policy_tests = b.addRunArtifact(lifecycle_policy_tests); |
| 1074 | 1086 | const run_prefs_tests = b.addRunArtifact(prefs_tests); |
| @@ -1187,6 +1199,7 @@ pub fn build(b: *std.Build) void { | ||
| 1187 | 1199 | test_step.dependOn(&run_external_link_tests.step); |
| 1188 | 1200 | test_step.dependOn(&run_webview_recovery_tests.step); |
| 1189 | 1201 | test_step.dependOn(&run_request_context_tests.step); |
| 1202 | test_step.dependOn(&run_notification_actions_tests.step); | |
| 1190 | 1203 | test_step.dependOn(&run_cli_unit_tests.step); |
| 1191 | 1204 | test_step.dependOn(&run_lifecycle_policy_tests.step); |
| 1192 | 1205 | // macOS only: the registry describes the dispatch chain in macos.zig, and |