diff options
author | Perberos <[email protected]> | 2011-11-09 18:17:43 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-11-09 18:17:43 -0300 |
commit | f6ce926719943751cf65cacde7fae050593eb2d6 (patch) | |
tree | 9224d1751678cf2d1fbd0431f128b711311c0287 /test/test6.py | |
download | atril-f6ce926719943751cf65cacde7fae050593eb2d6.tar.bz2 atril-f6ce926719943751cf65cacde7fae050593eb2d6.tar.xz |
inicial
Diffstat (limited to 'test/test6.py')
-rwxr-xr-x | test/test6.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/test6.py b/test/test6.py new file mode 100755 index 00000000..89b6e5d0 --- /dev/null +++ b/test/test6.py @@ -0,0 +1,31 @@ +#!/usr/bin/python + +# Test printing + +import os +os.environ['LANG']='C' +srcdir = os.environ['srcdir'] +homedir = os.environ["HOME"] + "/"; + +from dogtail.procedural import * + +if os.path.exists(homedir + "output.ps"): + os.unlink(homedir + "output.ps") + +run('evince', arguments=' '+srcdir+'/test-page-labels.pdf') + +click('File', roleName='menu') +click('Print...', roleName='menu item') + +focus.dialog('Print') +click('Print to File', roleName='table cell', raw=True) +click('Print', roleName='push button') + +statinfo = os.stat (homedir + "output.ps") +if statinfo.st_size > 100000: + exit(1) +os.unlink (homedir + "output.ps") + +# Close evince +click('File', roleName='menu') +click('Close', roleName='menu item') |