Initial commit, very few changes from orca 45. Added xfce4-notification daemon support.

This commit is contained in:
Storm Dragon
2024-10-16 17:06:34 -04:00
parent cef8363cfd
commit a523205ac2
1447 changed files with 1537893 additions and 2 deletions

View File

@ -0,0 +1,97 @@
#!/usr/bin/python
"""Test to verify bug #463172 is still fixed.
OOo sbase application crashes when entering a database record.
"""
from macaroon.playback import *
sequence = MacroSequence()
######################################################################
# 1. Start oobase. Wait for the first screen of the startup wizard to
# appear.
#
sequence.append(WaitForWindowActivate("Database Wizard", None))
sequence.append(WaitForFocus("Select database", acc_role=pyatspi.ROLE_LABEL))
######################################################################
# 2. Press Return to get to the second screen of the startup wizard.
#
# BRAILLE LINE: 'soffice Application Database Wizard Dialog Database Wizard OptionPane Steps Panel Save and proceed Label'
# VISIBLE: 'Save and proceed Label', cursor=1
# SPEECH OUTPUT: 'Save and proceed label'
#
sequence.append(KeyComboAction("Return"))
sequence.append(WaitForFocus("Save and proceed", acc_role=pyatspi.ROLE_LABEL))
######################################################################
# 3. Press Tab to get to the database registration radio buttons.
#
# BRAILLE LINE: 'soffice Application Database Wizard Dialog Database Wizard OptionPane &=y Do you want the wizard to register the database in OpenOffice.org? Yes, register the database for me RadioButton'
# VISIBLE: '&=y Do you want the wizard to re', cursor=1
# SPEECH OUTPUT: 'Yes, register the database for me selected radio button'
#
sequence.append(KeyComboAction("Tab"))
sequence.append(WaitForFocus("Yes, register the database for me", acc_role=pyatspi.ROLE_RADIO_BUTTON))
######################################################################
# 4. Press down arrow to not register this database.
#
# BRAILLE LINE: 'soffice Application Database Wizard Dialog Database Wizard OptionPane &=y No, do not register the database RadioButton'
# VISIBLE: '&=y No, do not register the data', cursor=1
# SPEECH OUTPUT: 'No, do not register the database selected radio button'
#
sequence.append(KeyComboAction("Down"))
sequence.append(WaitForFocus("No, do not register the database", acc_role=pyatspi.ROLE_RADIO_BUTTON))
sequence.append(PauseAction(3000))
######################################################################
# 5. Press Return to Finish the startup wizard.
#
# BRAILLE LINE: 'soffice Application Save Dialog ScrollPane Files Table'
# VISIBLE: 'Files Table', cursor=1
# SPEECH OUTPUT: 'Save'
# SPEECH OUTPUT: 'Files table'
#
sequence.append(KeyComboAction("Return"))
sequence.append(WaitForFocus("Files", acc_role=pyatspi.ROLE_TABLE))
sequence.append(PauseAction(3000))
######################################################################
# 6. A Save dialog has appeared. Press Return to select the default name.
# A database window will appear.
#
# BRAILLE LINE: 'soffice Application New Database - OpenOffice.org Base Frame New Database - OpenOffice.org Base RootPane IconChoiceControl Tree Forms Label'
# VISIBLE: 'Forms Label', cursor=1
# SPEECH OUTPUT: 'New Database - OpenOffice.org Base frame'
# SPEECH OUTPUT: 'panel'
# SPEECH OUTPUT: 'panel'
# SPEECH OUTPUT: 'panel'
# SPEECH OUTPUT: 'Forms label'
# SPEECH OUTPUT: 'panel'
# SPEECH OUTPUT: 'Forms label'
#
sequence.append(KeyComboAction("Return"))
sequence.append(WaitForWindowActivate("New Database - OpenOffice.org Base", None))
sequence.append(WaitForFocus("IconChoiceControl", acc_role=pyatspi.ROLE_TREE))
######################################################################
# 7. Enter Alt-f, Alt-c to close the database window.
#
sequence.append(KeyComboAction("<Alt>f"))
sequence.append(WaitForFocus("New", acc_role=pyatspi.ROLE_MENU))
sequence.append(KeyComboAction("<Alt>c"))
sequence.append(WaitAction("object:property-change:accessible-name",
None,
None,
pyatspi.ROLE_ROOT_PANE,
30000))
######################################################################
# 8. Wait for things to get back to normal.
#
sequence.append(PauseAction(3000))
sequence.start()

Binary file not shown.

View File

@ -0,0 +1 @@
PARAMS=$TEST_DIR/bug_465109.odb

View File

@ -0,0 +1,142 @@
#!/usr/bin/python
"""Test to verify bug #465109 is still fixed.
OOo sbase application crashes when entering a database record.
"""
from macaroon.playback import *
sequence = MacroSequence()
######################################################################
# 1. Start oobase. There is a bug_465109.params file that will
# automatically load bug_465109.odb.
#
sequence.append(WaitForWindowActivate("bug_465109 - OpenOffice.org Base", None))
######################################################################
# 2. Enter Alt-v, right arrow and Return to select Tables from the
# Database column and show the Tables view.
#
# BRAILLE LINE: 'soffice Application bug_465109 - OpenOffice.org Base Frame bug_465109 - OpenOffice.org Base RootPane IconChoiceControl Tree Tables Label'
# VISIBLE: 'Tables Label', cursor=1
# SPEECH OUTPUT: 'Database Objects menu'
# SPEECH OUTPUT: 'View menu'
# SPEECH OUTPUT: 'Forms label'
# SPEECH OUTPUT: 'Tables label'
#
sequence.append(KeyComboAction("<Alt>v"))
sequence.append(WaitForFocus("Database Objects", acc_role=pyatspi.ROLE_MENU))
sequence.append(KeyComboAction("Right"))
sequence.append(WaitForFocus("Tables", acc_role=pyatspi.ROLE_MENU_ITEM))
sequence.append(KeyComboAction("Return"))
######################################################################
# 3. Enter Tab three times to get focus to the Addresses table in the
# Tables pane.
#
sequence.append(KeyComboAction("Tab"))
sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_TREE))
sequence.append(KeyComboAction("Tab"))
sequence.append(WaitForFocus("None", acc_role=pyatspi.ROLE_PUSH_BUTTON))
sequence.append(KeyComboAction("Tab"))
sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_TREE))
######################################################################
# 4. Enter down arrow and Return to bring up a separate window showing
# the NameAddrPhone table.
#
# BRAILLE LINE: 'soffice Application bug_465109: NameAddrPhone Frame bug_465109: NameAddrPhone RootPane Data source table view Panel'
# VISIBLE: 'Data source table view Panel', cursor=1
# SPEECH OUTPUT: 'bug_465109: NameAddrPhone frame'
# SPEECH OUTPUT: 'panel'
# SPEECH OUTPUT: 'Data source table view panel'
#
sequence.append(KeyComboAction("Down"))
sequence.append(KeyComboAction("Return"))
sequence.append(WaitForWindowActivate("bug_465109: NameAddrPhone", None))
sequence.append(WaitForFocus("Data source table view", acc_role=pyatspi.ROLE_PANEL))
######################################################################
# 5. Press Tab to get focus into the LastName field and enter "smith".
#
# BRAILLE LINE: 'soffice Application bug_465109: NameAddrPhone Frame bug_465109: NameAddrPhone RootPane Data source table view Panel $l'
# VISIBLE: ' $l', cursor=1
# SPEECH OUTPUT: 'LastName, Row 0 text '
# SPEECH OUTPUT: 'text '
#
sequence.append(KeyComboAction("Tab"))
sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_TEXT))
sequence.append(TypeAction("smith"))
######################################################################
# 6. Press Tab to get focus into the City field and enter "san francisco".
#
sequence.append(KeyComboAction("Tab"))
sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_TEXT))
sequence.append(TypeAction("san francisco"))
######################################################################
# 7. Press Tab to get focus into the StateOrProvince field and enter
# "california".
#
sequence.append(KeyComboAction("Tab"))
sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_TEXT))
sequence.append(TypeAction("california"))
######################################################################
# 8. Press Tab to get focus into the PhoneNumber field and enter
# "415-555-1212".
#
sequence.append(KeyComboAction("Tab"))
sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_TEXT))
sequence.append(TypeAction("415-555-1212"))
######################################################################
# 9. Enter Alt-f, up arrow and Return to select Exit from the File menu.
#
sequence.append(KeyComboAction("<Alt>f"))
sequence.append(WaitForFocus("New", acc_role=pyatspi.ROLE_MENU))
sequence.append(KeyComboAction("Up"))
sequence.append(WaitForFocus("Exit", acc_role=pyatspi.ROLE_MENU_ITEM))
sequence.append(KeyComboAction("Return"))
sequence.append(WaitForFocus("Yes", acc_role=pyatspi.ROLE_PUSH_BUTTON))
######################################################################
# 10. Press Tab and Return to not save the current changes.
# This dismisses the NameAddrPhone table window.
#
sequence.append(KeyComboAction("Tab"))
sequence.append(WaitForFocus("No", acc_role=pyatspi.ROLE_PUSH_BUTTON))
sequence.append(KeyComboAction("Return"))
sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_TREE))
######################################################################
# 9. Enter Alt-f, up arrow and Return to select Exit from the File menu.
# of the main oobase window.
#
sequence.append(KeyComboAction("<Alt>f"))
sequence.append(WaitForFocus("New", acc_role=pyatspi.ROLE_MENU))
sequence.append(KeyComboAction("Up"))
sequence.append(WaitForFocus("Exit", acc_role=pyatspi.ROLE_MENU_ITEM))
sequence.append(KeyComboAction("Return"))
######################################################################
# 10. Wait for things to get back to normal.
#
sequence.append(PauseAction(3000))
sequence.start()