aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordanix <danix@danix.xyz>2026-06-11 10:51:15 +0200
committerdanix <danix@danix.xyz>2026-06-11 10:51:15 +0200
commit25eca863522ad8c37770782b5a86a3591093e17e (patch)
tree780a6a1a812d70012345017a178ddfdf299f654f /tests
parentd7bd784d23d9543740e2428bd7f65fb85283d26f (diff)
downloadwallp-25eca863522ad8c37770782b5a86a3591093e17e.tar.gz
wallp-25eca863522ad8c37770782b5a86a3591093e17e.zip
feat: render help with Pango markup in qarma
qarma --info supports Pango markup; bold headers + monospace command column. Stdout path stays plain text (no tags leak to terminal). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/wallp.bats20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/wallp.bats b/tests/wallp.bats
index e809c13..b78dc35 100644
--- a/tests/wallp.bats
+++ b/tests/wallp.bats
@@ -278,6 +278,26 @@ EOF
[[ "$output" == *"Usage"* ]]
}
+@test "stdout help has no pango markup tags" {
+ unset WAYLAND_DISPLAY
+ run show_help
+ [[ "$output" != *"<b>"* ]]
+ [[ "$output" != *"<tt>"* ]]
+ [[ "$output" == *"Usage"* ]]
+}
+
+@test "qarma help uses pango markup" {
+ export WAYLAND_DISPLAY="wayland-0"
+ cat > "$STUB_DIR/qarma" <<EOF
+#!/bin/bash
+echo "qarma \$*" >> "$TMP_HOME/calls.log"
+exit 0
+EOF
+ chmod +x "$STUB_DIR/qarma"
+ show_help
+ grep -q "<b>" "$HOME/calls.log"
+}
+
@test "bootstrap on missing conf exits zero without setting wallpaper" {
unset WAYLAND_DISPLAY
run main --restore