Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
path: root/test/test1.py
diff options
authorWouter Bolsterlee <wbolster@cvs.gnome.org>2006-10-29 12:48:48 (GMT)
committer Wouter Bolsterlee <wbolster@src.gnome.org>2006-10-29 12:48:48 (GMT)
commiteb0b518aaf980993486c6e132b2df367d3ed76ca (patch)
tree95c7733053bb60294f5dda48091720ce51a44da0 /test/test1.py
parent46dd6bbf290e60f7642efcd8d0454b8ee21a3834 (diff)
Cleaned up the dogtail scripts.
2006-10-29 Wouter Bolsterlee <wbolster@cvs.gnome.org> * test/test1.py: * test/test2.py: Cleaned up the dogtail scripts.
Diffstat (limited to 'test/test1.py')
1 files changed, 15 insertions, 10 deletions
diff --git a/test/test1.py b/test/test1.py
index 8c05ebd..d3abed3 100755
--- a/test/test1.py
+++ b/test/test1.py
@@ -1,27 +1,32 @@
-from dogtail.procedural import *
-from dogtail.utils import screenshot
-import os
+# This test opens the interface and just clicks around a bit.
-os.system ('rm -rf ~/.gnome2/evince')
+from dogtail.procedural import *
+# Test file->open
click('File', roleName='menu')
click('Open...', roleName='menu item')
focus.dialog('Open Document')
click('Cancel', roleName='push button')
-click('File', roleName='menu')
+# 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 Evince')
+click('Credits', roleName='push button')
+click('Close', roleName='push button')
click('Close', roleName='push button')
-click('Close', roleName='menu item')
+# Close evince
+click('File', roleName='menu')
+click('Close', roleName='menu item')