From 264e9e5b0e4dafd158b0ee9a922f7fc641614b6c Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Fri, 20 Nov 2015 11:15:34 +0100 Subject: [PATCH] Issue #275 test case --- Makefile.am | 2 ++ test/run_issue_275.sh | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 test/run_issue_275.sh diff --git a/Makefile.am b/Makefile.am index d05d2468..bf78ba8f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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" diff --git a/test/run_issue_275.sh b/test/run_issue_275.sh new file mode 100755 index 00000000..7c4d5703 --- /dev/null +++ b/test/run_issue_275.sh @@ -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}