Merge pull request #780 from fwSmit/test-fix

Fix some tests
This commit is contained in:
Nikos Tsipinakis 2020-11-17 20:30:31 +02:00 committed by GitHub
commit 756e6662e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 8 deletions

View File

@ -1,7 +1,7 @@
[global] [global]
font = Monospace 8 font = Monospace 8
allow_markup = no allow_markup = no
format = "<b>%s</b>\n<i>%b</i>" format = "%s\n%b"
sort = yes sort = yes
indicate_hidden = yes indicate_hidden = yes
alignment = left alignment = left

View File

@ -80,15 +80,17 @@ function markup {
killall dunst killall dunst
../../dunst -config dunstrc.markup "200x0+10+10" & ../../dunst -config dunstrc.markup "200x0+10+10" &
../../dunstify -a "dunst tester" "Markup Tests" -u "c" ../../dunstify -a "dunst tester" "Markup Tests" -u "c"
../../dunstify -a "dunst tester" "<b>bold</b> <i>italic</i>" ../../dunstify -a "dunst tester" "There should be no markup in the title" -u "c"
../../dunstify -a "dunst tester" "<b>broken markup</i>" ../../dunstify -a "dunst tester" "Title" "<b>bold</b> <i>italic</i>"
../../dunstify -a "dunst tester" "Title" "<a href="github.com"> Github link </a>"
../../dunstify -a "dunst tester" "Title" "<b>broken markup</i>"
keypress keypress
killall dunst killall dunst
../../dunst -config dunstrc.nomarkup "200x0+10+10" & ../../dunst -config dunstrc.nomarkup "200x0+10+10" &
../../dunstify -a "dunst tester" -u c "NO Markup Tests" ../../dunstify -a "dunst tester" -u c "No markup Tests"
../../dunstify -a "dunst tester" "<b>bold</b><i>italic</i>" ../../dunstify -a "dunst tester" "<b>Title</b>" "<b>bold</b><i>italic</i>"
../../dunstify -a "dunst tester" "<b>broken markup</i>" ../../dunstify -a "dunst tester" "<b>Title</b>" "<b>broken markup</i>"
keypress keypress
} }
@ -160,13 +162,13 @@ function geometry {
killall dunst killall dunst
../../dunst -config dunstrc.default -geom "-300x1" & ../../dunst -config dunstrc.default -geom "-300x1" &
../../dunstify -a "dunst tester" -u c "-300x1" ../../dunstify -a "dunst tester" -u c -- "-300x1"
basic_notifications basic_notifications
keypress keypress
killall dunst killall dunst
../../dunst -config dunstrc.default -geom "-300x1-20-20" & ../../dunst -config dunstrc.default -geom "-300x1-20-20" &
../../dunstify -a "dunst tester" -u c "-300x1-20-20" ../../dunstify -a "dunst tester" -u c -- "-300x1-20-20"
basic_notifications basic_notifications
keypress keypress