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:
parent
8173bafcd6
commit
45e07bb83c
2 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue