55 lines
1.5 KiB
Python
55 lines
1.5 KiB
Python
#!/usr/bin/python
|
|
|
|
"""Test of line navigation output of Firefox."""
|
|
|
|
from macaroon.playback import *
|
|
import utils
|
|
|
|
sequence = MacroSequence()
|
|
|
|
#sequence.append(WaitForDocLoad())
|
|
sequence.append(PauseAction(5000))
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
sequence.append(KeyComboAction("<Control>Home"))
|
|
sequence.append(utils.AssertPresentationAction(
|
|
"1. Top of file",
|
|
["BRAILLE LINE: '1'",
|
|
" VISIBLE: '1', cursor=1",
|
|
"SPEECH OUTPUT: '1'"]))
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
sequence.append(KeyComboAction("Down"))
|
|
sequence.append(utils.AssertPresentationAction(
|
|
"2. Line Down",
|
|
["BRAILLE LINE: '2'",
|
|
" VISIBLE: '2', cursor=1",
|
|
"SPEECH OUTPUT: '2'"]))
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
sequence.append(KeyComboAction("Down"))
|
|
sequence.append(utils.AssertPresentationAction(
|
|
"3. Line Down",
|
|
["BRAILLE LINE: '3'",
|
|
" VISIBLE: '3', cursor=1",
|
|
"SPEECH OUTPUT: '3'"]))
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
sequence.append(KeyComboAction("Up"))
|
|
sequence.append(utils.AssertPresentationAction(
|
|
"4. Line Up",
|
|
["BRAILLE LINE: '2'",
|
|
" VISIBLE: '2', cursor=1",
|
|
"SPEECH OUTPUT: '2'"]))
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
sequence.append(KeyComboAction("Up"))
|
|
sequence.append(utils.AssertPresentationAction(
|
|
"5. Line Up",
|
|
["BRAILLE LINE: '1'",
|
|
" VISIBLE: '1', cursor=1",
|
|
"SPEECH OUTPUT: '1'"]))
|
|
|
|
sequence.append(utils.AssertionSummaryAction())
|
|
sequence.start()
|