summaryrefslogtreecommitdiff
path: root/test/test5.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test5.py')
-rwxr-xr-xtest/test5.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/test5.py b/test/test5.py
new file mode 100755
index 00000000..9fd7276e
--- /dev/null
+++ b/test/test5.py
@@ -0,0 +1,24 @@
+#!/usr/bin/python
+
+# This test tries document reload action.
+
+import os
+os.environ['LANG']='C'
+srcdir = os.environ['srcdir']
+
+from dogtail.procedural import *
+
+run('evince', arguments=' '+srcdir+'/test-page-labels.pdf')
+
+focus.widget('page-label-entry')
+focus.widget.text = "iii"
+activate()
+
+if focus.widget.text != "III":
+ click('File', roleName='menu')
+ click('Close', roleName='menu item')
+ exit (1)
+
+# Close evince
+click('File', roleName='menu')
+click('Close', roleName='menu item')