]> www.fi.muni.cz Git - evince.git/blob - test/test1.py
Re-add locale settings to test files.
[evince.git] / test / test1.py
1 #!/usr/bin/python
2
3 # This test opens the interface and just clicks around a bit.
4
5 import os
6 os.environ['LANG']='en_US.UTF-8'
7
8 from dogtail.procedural import *
9
10 run('evince')
11
12 # Test file->open
13 click('File', roleName='menu')
14 click('Open...', roleName='menu item')
15 focus.dialog('Open Document')
16 click('Cancel', roleName='push button')
17
18 # Toolbar editor
19 click('Edit', roleName='menu')
20 click('Toolbar', roleName='menu item')
21 focus.dialog('Toolbar Editor')
22 click('Close', roleName='push button')
23
24 # About dialog
25 click('Help', roleName='menu')
26 click('About', roleName='menu item')
27 focus.dialog('About Evince')
28 click('Credits', roleName='push button')
29 focus.dialog('Credits')
30 click('Close', roleName='push button')
31 click('Close', roleName='push button')
32
33 # Close evince
34 click('File', roleName='menu')
35 click('Close', roleName='menu item')