]> www.fi.muni.cz Git - evince.git/commitdiff
Added a test to check printing and a size of the file.
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>
Thu, 26 Mar 2009 00:09:55 +0000 (00:09 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Thu, 26 Mar 2009 00:09:55 +0000 (00:09 +0000)
2009-03-26  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

* test/Makefile.am:
* test/test6.py:

Added a test to check printing and a size of the file.

svn path=/trunk/; revision=3560

ChangeLog
test/Makefile.am
test/test6.py [new file with mode: 0755]

index 46e106cabd2cd993363e422a56addef50713408c..4a5a01fe339a7dbb93a25d43bd958b01eb96ced6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-03-26  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * test/Makefile.am:
+       * test/test6.py:
+       
+       Added a test to check printing and a size of the file.
+
 2009-03-24  Christian Persch  <chpe@gnome.org>
 
        * cut-n-paste/smclient/eggdesktopfile.c:
index aa562d38129279ebe00956d3171145a25b0ab1ec..82748770dc4a41a72ff1097011f1a409b48323e2 100644 (file)
@@ -4,7 +4,8 @@ dist_check_SCRIPTS = \
        test2.py \
        test3.py \
        test4.py \
-       test5.py
+       test5.py \
+       test6.py
 
 TESTS = $(dist_check_SCRIPTS)
 
diff --git a/test/test6.py b/test/test6.py
new file mode 100755 (executable)
index 0000000..9ffcfae
--- /dev/null
@@ -0,0 +1,29 @@
+#!/usr/bin/python
+
+# Test printing
+
+import os
+os.environ['LANG']='C'
+srcdir = os.environ['srcdir']
+
+from dogtail.procedural import *
+
+os.unlink("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 ("output.ps")
+if statinfo.st_size > 100000:
+    exit(1)
+os.unlink ("output.ps")
+
+# Close evince
+click('File', roleName='menu')
+click('Close', roleName='menu item')