cthulhu/test/keystrokes/oowriter/ui_role_label.py

46 lines
1.6 KiB
Python

#!/usr/bin/python
"""Test to verify presentation of focusable labels."""
from macaroon.playback import *
import utils
sequence = MacroSequence()
sequence.append(KeyComboAction("<Alt>f"))
sequence.append(TypeAction("w"))
sequence.append(TypeAction("a"))
sequence.append(PauseAction(3000))
sequence.append(KeyComboAction("<Alt>n"))
sequence.append(KeyComboAction("<Alt>b"))
sequence.append(PauseAction(3000))
sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
"1. Down arrow to the first item",
["BRAILLE LINE: 'soffice application Agenda Wizard dialog Steps panel General information'",
" VISIBLE: 'General information', cursor=1",
"SPEECH OUTPUT: 'General information.'"]))
sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
"2. Down arrow to the next item",
["BRAILLE LINE: 'soffice application Agenda Wizard dialog Steps panel Headings to include'",
" VISIBLE: 'Headings to include', cursor=1",
"SPEECH OUTPUT: 'Headings to include.'"]))
sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
"3. Down arrow to the next item",
["BRAILLE LINE: 'soffice application Agenda Wizard dialog Steps panel Names'",
" VISIBLE: 'Names', cursor=1",
"SPEECH OUTPUT: 'Names.'"]))
sequence.append(KeyComboAction("<Alt>F4"))
sequence.append(utils.AssertionSummaryAction())
sequence.start()