2024-10-16 17:06:34 -04:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
2024-10-17 10:33:20 -04:00
|
|
|
"""Test of Cthulhu's support for mouseovers."""
|
2024-10-16 17:06:34 -04:00
|
|
|
|
|
|
|
from macaroon.playback import *
|
|
|
|
import utils
|
|
|
|
|
|
|
|
sequence = MacroSequence()
|
|
|
|
|
|
|
|
#sequence.append(WaitForDocLoad())
|
|
|
|
sequence.append(PauseAction(5000))
|
|
|
|
sequence.append(KeyComboAction("<Control>Home"))
|
|
|
|
sequence.append(KeyComboAction("Down"))
|
|
|
|
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
|
|
sequence.append(KeyPressAction(0, None, "KP_Insert"))
|
|
|
|
sequence.append(KeyComboAction("KP_Divide"))
|
|
|
|
sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
|
|
|
|
sequence.append(utils.AssertPresentationAction(
|
|
|
|
"1. Route the pointer to the image",
|
|
|
|
["KNOWN ISSUE: There seems to be some input event bleed through here",
|
|
|
|
"BRAILLE LINE: 'Firefox application MouseOvers - Nightly frame dialog'",
|
|
|
|
" VISIBLE: 'dialog', cursor=1",
|
|
|
|
"BRAILLE LINE: 'Firefox application MouseOvers - Nightly frame dialog OK push button'",
|
|
|
|
" VISIBLE: 'OK push button', cursor=1",
|
2024-10-17 10:33:20 -04:00
|
|
|
"SPEECH OUTPUT: 'Welcome to mouseover-enabled Cthulhu!'",
|
2024-10-16 17:06:34 -04:00
|
|
|
"SPEECH OUTPUT: 'OK push button'"]))
|
|
|
|
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
|
|
sequence.append(KeyComboAction("Escape"))
|
|
|
|
sequence.append(utils.AssertPresentationAction(
|
|
|
|
"2. Escape to dismiss the dialog.",
|
2024-10-17 10:33:20 -04:00
|
|
|
["BRAILLE LINE: 'Cthulhu Logo image'",
|
|
|
|
" VISIBLE: 'Cthulhu Logo image', cursor=1",
|
|
|
|
"SPEECH OUTPUT: 'Cthulhu Logo image'"]))
|
2024-10-16 17:06:34 -04:00
|
|
|
|
|
|
|
sequence.append(utils.AssertionSummaryAction())
|
|
|
|
sequence.start()
|