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

Issue #275 test case

This commit is contained in:
Qball Cow 2015-11-20 11:15:34 +01:00
parent 5f7694fc62
commit 264e9e5b0e
2 changed files with 24 additions and 0 deletions

View file

@ -178,6 +178,8 @@ test-x: ${bin_PROGRAMS}
$(top_srcdir)/test/run_test.sh 205 $(top_srcdir)/test/run_script_test.sh $(top_builddir)
echo "Issue 256"
$(top_srcdir)/test/run_test.sh 206 $(top_srcdir)/test/run_issue_256.sh $(top_builddir)
echo "Issue 275"
$(top_srcdir)/test/run_test.sh 207 $(top_srcdir)/test/run_issue_275.sh $(top_builddir)
echo "End tests"

22
test/run_issue_275.sh Executable file
View file

@ -0,0 +1,22 @@
#!/usr/bin/env bash
echo -e "aap\nnoot\nmies" | rofi -dmenu &
RPID=$!
# send enter.
sleep 5;
xdotool key 't'
sleep 0.4
xdotool key 'r'
sleep 0.4
xdotool key 'u'
sleep 0.4
xdotool key 'e'
sleep 0.4
xdotool key End
# Get result, kill xvfb
wait ${RPID}
RETV=$?
exit ${RETV}