aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notify/policy_test.go
AgeCommit message (Collapse)AuthorFilesLines
33 hoursfix: honour the freedesktop expire_timeout directionDanilo M.1-4/+4
The spec says -1 means the server decides and 0 means never; the code had them swapped, so a plain notify-send (libnotify's default is -1) became immortal and an explicit never (-t 0) got the urgency default. Found by the live handover test, where notify-send produced expires 0. The urgency default is unchanged: low and normal 10s, critical never.
33 hoursfix: add the GPLv2 header to the policy testDanilo M.1-0/+11
34 hoursfeat: add the module and the notification policyDanilo M.1-0/+89
The policy functions are pure so they are tested without a bus: urgency from the hints, the timeout rule with its urgency defaults, the two stack tag spellings, and the action pair parse.