39 lines
1.4 KiB
Python
39 lines
1.4 KiB
Python
#!/usr/bin/python
|
|
|
|
"""Test of Cthulhu's support for mouseovers."""
|
|
|
|
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",
|
|
"SPEECH OUTPUT: 'Welcome to mouseover-enabled Cthulhu!'",
|
|
"SPEECH OUTPUT: 'OK push button'"]))
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
sequence.append(KeyComboAction("Escape"))
|
|
sequence.append(utils.AssertPresentationAction(
|
|
"2. Escape to dismiss the dialog.",
|
|
["BRAILLE LINE: 'Cthulhu Logo image'",
|
|
" VISIBLE: 'Cthulhu Logo image', cursor=1",
|
|
"SPEECH OUTPUT: 'Cthulhu Logo image'"]))
|
|
|
|
sequence.append(utils.AssertionSummaryAction())
|
|
sequence.start()
|