+2006-10-24 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+
+ * configure.ac:
+ * data/evince-password.glade:
+ * test/Makefile.am:
+ * test/test-encrypt.pdf:
+ * test/test-links.pdf:
+ * test/test1.py:
+ * test/test2.py:
+
+ Add automated UI tests for evince with dogtail. See
+ bug #300948.
+
2006-10-22 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-window.c: (fullscreen_timeout_cb), (ev_window_init):
AC_SUBST(EVINCE_MIME_TYPES)
AC_CONFIG_FILES([
-Makefile
+backend/Makefile
+comics/Makefile
cut-n-paste/Makefile
cut-n-paste/recent-files/Makefile
-cut-n-paste/zoom-control/Makefile
cut-n-paste/toolbar-editor/Makefile
-data/Makefile
+cut-n-paste/zoom-control/Makefile
data/evince.desktop.in
-data/icons/Makefile
data/icons/16x16/Makefile
data/icons/22x22/Makefile
data/icons/48x48/Makefile
+data/icons/Makefile
data/icons/scalable/Makefile
-
-lib/Makefile
-pdf/Makefile
-pixbuf/Makefile
-tiff/Makefile
-ps/Makefile
+data/Makefile
djvu/Makefile
dvi/Makefile
dvi/mdvi-lib/Makefile
+help/Makefile
impress/Makefile
-comics/Makefile
+lib/Makefile
+Makefile
+pdf/Makefile
+pixbuf/Makefile
po/Makefile.in
-backend/Makefile
properties/Makefile
+ps/Makefile
shell/Makefile
+test/Makefile
thumbnailer/Makefile
-help/Makefile
+tiff/Makefile
])
AC_OUTPUT
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="activates_default">True</property>
+ <accessibility>
+ <atkproperty name="AtkObject::accessible_name" translatable="yes">Password Entry</atkproperty>
+ </accessibility>
</widget>
<packing>
<property name="padding">0</property>
--- /dev/null
+
+TESTS = test1.py test2.py
+
+EXTRA_DIST = test-encrypted.pdf test-links.pdf
\ No newline at end of file
--- /dev/null
+#!/usr/bin/python
+
+from dogtail.procedural import *
+from dogtail.utils import screenshot
+
+import os
+
+os.environ['LANG']='en_US.UTF-8'
+os.system ('rm -rf ~/.gnome2/evince')
+
+run('evince')
+
+focus.application('evince')
+
+click('File', roleName='menu')
+click('Open...', roleName='menu item')
+focus.dialog('Open Document')
+click('Cancel', roleName='push button')
+click('File', roleName='menu')
+click('Toolbar', roleName='menu item')
+focus.dialog('Toolbar Editor')
+click('Close', roleName='push button')
+click('About', roleName='menu item')
+focus.dialog('About Evince')
+click('Close', roleName='push button')
+click('Close', roleName='menu item')
+
--- /dev/null
+#!/usr/bin/python
+
+from dogtail.procedural import *
+from dogtail.utils import screenshot
+
+import os
+
+os.environ['LANG']='en_US.UTF-8'
+os.system ('rm -rf ~/.gnome2/evince')
+
+run('evince',arguments=' ./test-encrypt.pdf',)
+focus.dialog('Enter password')
+focus.widget('Password Entry', roleName='password text')
+type("wrong password")
+click('OK', roleName='push button')
+click('Cancel', roleName='push button')
+click('Unlock Document', roleName='push button')
+focus.widget('Password Entry', roleName='password text')
+type("Foo")
+click('OK', roleName='push button')
+click('Close', roleName='menu item')
+