1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

[dmenu] Update tests to hit the shift-enter mode

This commit is contained in:
Dave Davenport 2014-08-31 09:28:55 +02:00
parent 8173bafcd6
commit 45e07bb83c
2 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
xrdb -load ../doc/example.xresources
echo -e -n "aap\nnoot\nmies" | rofi -width -30 -dmenu > output.txt &
RPID=$!
@ -17,13 +18,14 @@ xdotool key 'e'
sleep 0.2
xdotool key 'e'
sleep 0.2
xdotool key Shift+Return
xdotool key Return
# Get result, kill xvfb
wait ${RPID}
RETV=$?
if [ `cat output.txt` != 'coffee' ]
OUTPUT=$(cat output.txt | tr '\n' ' ')
if [ "${OUTPUT}" != 'coffee coffee ' ]
then
exit 1
fi

View file

@ -9,15 +9,14 @@ RPID=$!
sleep 5;
xdotool key 'Down'
sleep 0.4
xdotool key 'Down'
sleep 0.4
xdotool key Shift+Return
xdotool key Return
# Get result, kill xvfb
wait ${RPID}
RETV=$?
if [ `cat output.txt` != 'mies' ]
OUTPUT=$(cat output.txt | tr '\n' ' ')
if [ "${OUTPUT}" != 'noot mies ' ]
then
exit 1
fi