2024-10-16 17:06:34 -04:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
"""Test of learn mode."""
|
|
|
|
|
|
|
|
from macaroon.playback import *
|
|
|
|
import utils
|
|
|
|
|
|
|
|
sequence = MacroSequence()
|
|
|
|
|
|
|
|
sequence.append(KeyPressAction(0, None, "KP_Insert"))
|
|
|
|
sequence.append(TypeAction("h"))
|
|
|
|
sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
|
|
|
|
|
|
|
|
sequence.append(PauseAction(2000))
|
|
|
|
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
|
|
sequence.append(KeyComboAction("F1"))
|
|
|
|
sequence.append(utils.AssertPresentationAction(
|
|
|
|
"1. F1 for help",
|
2024-10-17 10:33:20 -04:00
|
|
|
["BRAILLE LINE: 'yelp application Cthulhu Screen Reader frame'",
|
|
|
|
" VISIBLE: 'Cthulhu Screen Reader frame', cursor=1",
|
|
|
|
"BRAILLE LINE: ' Cthulhu's logo Cthulhu Screen Reader h1'",
|
|
|
|
" VISIBLE: 'Cthulhu's logo Cthulhu Screen Reader h', cursor=1",
|
|
|
|
"BRAILLE LINE: 'Finished loading Cthulhu Screen Reader.'",
|
|
|
|
" VISIBLE: 'Finished loading Cthulhu Screen Rea', cursor=0",
|
|
|
|
"BRAILLE LINE: ' Cthulhu's logo Cthulhu Screen Reader h1'",
|
|
|
|
" VISIBLE: 'Cthulhu's logo Cthulhu Screen Reader h', cursor=1",
|
2024-10-16 17:06:34 -04:00
|
|
|
"SPEECH OUTPUT: 'F1 '",
|
2024-10-17 10:33:20 -04:00
|
|
|
"SPEECH OUTPUT: 'Cthulhu Screen Reader frame'",
|
|
|
|
"SPEECH OUTPUT: 'Finished loading Cthulhu Screen Reader.' voice=system"]))
|
2024-10-16 17:06:34 -04:00
|
|
|
|
|
|
|
sequence.append(KeyComboAction("<Alt>F4"))
|
|
|
|
sequence.append(utils.AssertionSummaryAction())
|
|
|
|
sequence.start()
|