Commit eb0b518a authored by Wouter Bolsterlee's avatar Wouter Bolsterlee Committed by Wouter Bolsterlee

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.
parent 46dd6bbf
2006-10-29 Wouter Bolsterlee <wbolster@cvs.gnome.org>
* test/test1.py:
* test/test2.py:
Cleaned up the dogtail scripts.
2006-10-27 Wouter Bolsterlee <wbolster@cvs.gnome.org>
* shell/ev-view.c: (draw_loading_text): Don't render
......
#!/usr/bin/python
from dogtail.procedural import *
from dogtail.utils import screenshot
import os
# This test opens the interface and just clicks around a bit.
os.environ['LANG']='en_US.UTF-8'
os.system ('rm -rf ~/.gnome2/evince')
from dogtail.procedural import *
run('evince')
focus.application('evince')
# 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')
focus.dialog('Credits')
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')
#!/usr/bin/python
from dogtail.procedural import *
from dogtail.utils import screenshot
# This test opens a password encrypted file and tries to unlock it.
import os
from dogtail.procedural import *
os.environ['LANG']='en_US.UTF-8'
os.system ('rm -rf ~/.gnome2/evince')
run('evince', arguments=' ./test-encrypt.pdf',)
run('evince',arguments=' ./test-encrypt.pdf',)
# Try an incorrect password first
focus.dialog('Enter password')
focus.widget('Password Entry', roleName='password text')
type("wrong password")
type('wrong password')
click('OK', roleName='push button')
click('Cancel', roleName='push button')
# Try again with the correct password
click('Unlock Document', roleName='push button')
focus.widget('Password Entry', roleName='password text')
type("Foo")
type('Foo')
click('OK', roleName='push button')
click('Close', roleName='menu item')
# Close evince
click('File', roleName='menu')
click('Close', roleName='menu item')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment