summaryrefslogtreecommitdiff
path: root/test/test1.py
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-09 18:17:43 -0300
committerPerberos <[email protected]>2011-11-09 18:17:43 -0300
commitf6ce926719943751cf65cacde7fae050593eb2d6 (patch)
tree9224d1751678cf2d1fbd0431f128b711311c0287 /test/test1.py
downloadatril-f6ce926719943751cf65cacde7fae050593eb2d6.tar.bz2
atril-f6ce926719943751cf65cacde7fae050593eb2d6.tar.xz
inicial
Diffstat (limited to 'test/test1.py')
-rwxr-xr-xtest/test1.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/test1.py b/test/test1.py
new file mode 100755
index 00000000..42d83c01
--- /dev/null
+++ b/test/test1.py
@@ -0,0 +1,36 @@
+#!/usr/bin/python
+
+# This test opens the interface and just clicks around a bit.
+
+import os
+os.environ['LANG']='C'
+
+from dogtail.procedural import *
+
+run('evince')
+
+# Test file->open
+click('File', roleName='menu')
+click('Open...', roleName='menu item')
+focus.dialog('Open Document')
+click('Cancel', roleName='push button')
+
+# Toolbar editor
+click('Edit', roleName='menu')
+click('Toolbar', roleName='menu item')
+focus.dialog('Toolbar Editor')
+click('Close', roleName='push button')
+
+# About dialog
+click('Help', roleName='menu')
+click('About', roleName='menu item')
+focus.dialog('About Document Viewer')
+click('Credits', roleName='push button')
+focus.dialog('Credits')
+click('Close', roleName='push button')
+focus.dialog('About Document Viewer')
+click('Close', roleName='push button')
+
+# Close evince
+click('File', roleName='menu')
+click('Close', roleName='menu item')