evince r3560 - in trunk: . test
- From: nshmyrev svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3560 - in trunk: . test
- Date: Thu, 26 Mar 2009 00:09:55 +0000 (UTC)
Author: nshmyrev
Date: Thu Mar 26 00:09:55 2009
New Revision: 3560
URL: http://svn.gnome.org/viewvc/evince?rev=3560&view=rev
Log:
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.
Added:
trunk/test/test6.py (contents, props changed)
Modified:
trunk/ChangeLog
trunk/test/Makefile.am
Modified: trunk/test/Makefile.am
==============================================================================
--- trunk/test/Makefile.am (original)
+++ trunk/test/Makefile.am Thu Mar 26 00:09:55 2009
@@ -4,7 +4,8 @@
test2.py \
test3.py \
test4.py \
- test5.py
+ test5.py \
+ test6.py
TESTS = $(dist_check_SCRIPTS)
Added: trunk/test/test6.py
==============================================================================
--- (empty file)
+++ trunk/test/test6.py Thu Mar 26 00:09:55 2009
@@ -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')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]