aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-18 16:05:49 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-18 16:05:49 +0000
commitd94710fb9bffe18a45628107e7a8976caae60cbe (patch)
tree09ed07d81ad5f8ff4616b094055f52d8b5a8176e
parent66f79706f9c0f71d89d8badb1253806264039af4 (diff)
downloadpaludis-d94710fb9bffe18a45628107e7a8976caae60cbe.tar.gz
paludis-d94710fb9bffe18a45628107e7a8976caae60cbe.tar.xz
New SPI is highly retarded
-rw-r--r--src/gtkpaludis/Makefile.am3
-rwxr-xr-xsrc/gtkpaludis/yay_spi_TEST.py20
2 files changed, 22 insertions, 1 deletions
diff --git a/src/gtkpaludis/Makefile.am b/src/gtkpaludis/Makefile.am
index 68bfd30..da6de58 100644
--- a/src/gtkpaludis/Makefile.am
+++ b/src/gtkpaludis/Makefile.am
@@ -76,6 +76,7 @@ if ENABLE_GTK_TESTS
check_PROGRAMS = prod-x-server
check_SCRIPTS = \
+ yay_spi_TEST.py \
quit_TEST.py quit_TEST_setup.sh quit_TEST_cleanup.sh \
config_suffix_TEST.py \
sets_list_TEST.py sets_list_TEST_setup.sh sets_list_TEST_cleanup.sh
@@ -83,7 +84,7 @@ check_SCRIPTS = \
prod_x_server_SOURCES = prod-x-server.cc
prod_x_server_LDADD = -lX11
-TESTS = version_TEST help_TEST quit_TEST.py config_suffix_TEST.py sets_list_TEST.py
+TESTS = version_TEST help_TEST yay_spi_TEST.py quit_TEST.py config_suffix_TEST.py sets_list_TEST.py
endif
diff --git a/src/gtkpaludis/yay_spi_TEST.py b/src/gtkpaludis/yay_spi_TEST.py
new file mode 100755
index 0000000..84845e9
--- /dev/null
+++ b/src/gtkpaludis/yay_spi_TEST.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+
+import os
+from dogtail.procedural import *
+import dogtail.utils
+
+os.spawnv(os.P_NOWAIT, "./gtkpaludis", ["gtkpaludis", "-c", "doesnotexist"])
+for x in range(10):
+ try:
+ focus.application('lt-gtkpaludis')
+ break
+ except FocusError:
+ dogtail.utils.doDelay()
+
+try:
+ focus.application('lt-gtkpaludis')
+ click('OK')
+except:
+ True
+