orca r3765 - in trunk: . test/keystrokes/oowriter
- From: richb svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r3765 - in trunk: . test/keystrokes/oowriter
- Date: Wed, 26 Mar 2008 17:33:02 +0000 (GMT)
Author: richb
Date: Wed Mar 26 17:33:02 2008
New Revision: 3765
URL: http://svn.gnome.org/viewvc/orca?rev=3765&view=rev
Log:
* test/keystrokes/oowriter/bug_384893.py:
test/keystrokes/oowriter/bug_384893.params: (new)
Fix for bug #523450 - oowriter/bug_384893.py regression tests #2
and #3 produce the wrong results.
Added:
trunk/test/keystrokes/oowriter/bug_384893.params
Modified:
trunk/ChangeLog
trunk/test/keystrokes/oowriter/bug_384893.py
Added: trunk/test/keystrokes/oowriter/bug_384893.params
==============================================================================
--- (empty file)
+++ trunk/test/keystrokes/oowriter/bug_384893.params Wed Mar 26 17:33:02 2008
@@ -0,0 +1 @@
+PARAMS=$TEST_DIR/empty_document.odt
Modified: trunk/test/keystrokes/oowriter/bug_384893.py
==============================================================================
--- trunk/test/keystrokes/oowriter/bug_384893.py (original)
+++ trunk/test/keystrokes/oowriter/bug_384893.py Wed Mar 26 17:33:02 2008
@@ -11,23 +11,17 @@
sequence = MacroSequence()
######################################################################
-# 1. Start oowriter.
+# 1. Start oowriter. There is a bug_384893.params file that will
+# automatically load empty_document.odt. This uses the FreeSerif
+# font as the default which should be available on all test systems.
#
-sequence.append(WaitForWindowActivate("Untitled1 - OpenOffice.org Writer",None))
+sequence.append(WaitForWindowActivate("empty_document - OpenOffice.org Writer",None))
sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_PARAGRAPH))
######################################################################
-# 2. Enter Alt-f, right arrow and Return. (File->New->Text Document).
+# 2. Type Control-Home to move the text caret to the start of the document.
#
-sequence.append(KeyComboAction("<Alt>f"))
-sequence.append(WaitForFocus("New", acc_role=pyatspi.ROLE_MENU))
-
-sequence.append(KeyComboAction("Right"))
-sequence.append(WaitForFocus("Text Document", acc_role=pyatspi.ROLE_MENU_ITEM))
-
-sequence.append(KeyComboAction("Return"))
-sequence.append(WaitForWindowActivate("Untitled2 - OpenOffice.org Writer",None))
-sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_PARAGRAPH))
+sequence.append(KeyComboAction("<Control>Home"))
######################################################################
# 3. Enter the following (without the quotation marks) to create a
@@ -53,7 +47,7 @@
sequence.append(KeyComboAction("<Control>Home"))
sequence.append(utils.AssertPresentationAction(
"Type Control-Home to move to start of document",
- ["BRAILLE LINE: 'soffice Application Untitled2 - OpenOffice.org Writer Frame Untitled2 - OpenOffice.org Writer RootPane ScrollPane Document view This is a test $l'",
+ ["BRAILLE LINE: 'soffice Application Frame empty_document - OpenOffice.org Writer RootPane ScrollPane Document view This is a test $l'",
" VISIBLE: 'This is a test $l', cursor=1",
"SPEECH OUTPUT: 'This is a test'"]))
@@ -67,7 +61,7 @@
sequence.append(utils.AssertPresentationAction(
"Enter Insert-f to get text information on the underlined word",
["SPEECH OUTPUT: 'size 12'",
- "SPEECH OUTPUT: 'family-name Times'",
+ "SPEECH OUTPUT: 'family-name FreeSerif'",
"SPEECH OUTPUT: 'underline single'"]))
######################################################################
@@ -88,7 +82,7 @@
sequence.append(utils.AssertPresentationAction(
"Enter Insert-f to get text information on the bold word",
["SPEECH OUTPUT: 'size 12'",
- "SPEECH OUTPUT: 'family-name Times'",
+ "SPEECH OUTPUT: 'family-name FreeSerif'",
"SPEECH OUTPUT: 'bold'"]))
######################################################################
@@ -111,8 +105,6 @@
######################################################################
# 10. Wait for things to get back to normal.
#
-sequence.append(WaitForWindowActivate("Untitled1 - OpenOffice.org Writer", None))
-sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_PARAGRAPH))
sequence.append(PauseAction(3000))
sequence.append(utils.AssertionSummaryAction())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]