]> www.fi.muni.cz Git - evince.git/commitdiff
Added test for slow mime type
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>
Wed, 7 Feb 2007 09:12:30 +0000 (09:12 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Wed, 7 Feb 2007 09:12:30 +0000 (09:12 +0000)
2007-02-07  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

* test/Makefile.am:
* test/test-mime.bin:
* test/test3.py:

Added test for slow mime type

svn path=/trunk/; revision=2301

ChangeLog
test/Makefile.am
test/test-mime.bin [new file with mode: 0644]
test/test3.py [new file with mode: 0755]

index d955ee8ff10e4687807f56d09cfbc9f16f5c2ffe..66678853da6fa7e7c0bad9efdf5c310f1b1c65b8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-02-07  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * test/Makefile.am:
+       * test/test-mime.bin:
+       * test/test3.py:
+       
+       Added test for slow mime type
+
 2007-02-06  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-page-cache.c: (ev_page_cache_finalize):
index dfdb58046e12e095e7838963b4a2b392fa42f6c7..575fa98e6a692bb08a71532cc1d0e3529273b821 100644 (file)
@@ -1,6 +1,6 @@
 
-dist_check_SCRIPTS = test1.py test2.py
+dist_check_SCRIPTS = test1.py test2.py test3.py
 
 TESTS = $(dist_check_SCRIPTS)
 
-EXTRA_DIST = test-encrypt.pdf test-links.pdf
+EXTRA_DIST = test-encrypt.pdf test-links.pdf test-mime.bin
diff --git a/test/test-mime.bin b/test/test-mime.bin
new file mode 100644 (file)
index 0000000..0b1e620
Binary files /dev/null and b/test/test-mime.bin differ
diff --git a/test/test3.py b/test/test3.py
new file mode 100755 (executable)
index 0000000..adfbd9d
--- /dev/null
@@ -0,0 +1,15 @@
+#!/usr/bin/python
+
+# This test opens a password encrypted file and tries to unlock it.
+
+import os
+os.environ['LANG']='C'
+srcdir = os.environ['srcdir']
+
+from dogtail.procedural import *
+
+run('evince', arguments=' '+srcdir+'/test-mime.bin')
+
+# Close evince
+click('File', roleName='menu')
+click('Close', roleName='menu item')