Exemple #1
0
from macaroon.playback import *
import utils

sequence = MacroSequence()

#sequence.append(WaitForDocLoad())
sequence.append(PauseAction(5000))
sequence.append(KeyComboAction("Tab"))
sequence.append(KeyComboAction("Tab"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Tab"))
sequence.append(
    utils.AssertPresentationAction("1. Tab to Volume Slider", [
        "BRAILLE LINE:  'Volume 0 % slider'",
        "     VISIBLE:  'Volume 0 % slider', cursor=1",
        "SPEECH OUTPUT: 'Volume slider 0 %'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Right"))
sequence.append(
    utils.AssertPresentationAction("2. Volume Right Arrow", [
        "BRAILLE LINE:  'Volume 1 % slider'",
        "     VISIBLE:  'Volume 1 % slider', cursor=1", "SPEECH OUTPUT: '1 %'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Right"))
sequence.append(
    utils.AssertPresentationAction("3. Volume Right Arrow", [
Exemple #2
0
# Wait for the application gnome-appearance-properties comes up and
# then navigate to the Fonts tab
#
sequence.append(WaitForWindowActivate("Appearance Preferences"))
sequence.append(WaitForFocus("Theme", acc_role=pyatspi.ROLE_PAGE_TAB))

sequence.append(KeyComboAction("Right"))
sequence.append(WaitForFocus("Background", acc_role=pyatspi.ROLE_PAGE_TAB))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Right"))
sequence.append(WaitForFocus("Fonts", acc_role=pyatspi.ROLE_PAGE_TAB))
sequence.append(
    utils.AssertPresentationAction("Fonts tab", [
        "BRAILLE LINE:  'gnome-appearance-properties Application Appearance Preferences Dialog Fonts'",
        "     VISIBLE:  'Fonts', cursor=1", "SPEECH OUTPUT: ''",
        "SPEECH OUTPUT: 'Fonts page'"
    ]))

########################################################################
# Open the 'Pick a Font' dialog
#
sequence.append(KeyComboAction("Tab"))
sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_PUSH_BUTTON))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Alt>a"))
#sequence.append(WaitForWindowActivate("Pick a Font"))
sequence.append(WaitForFocus("", acc_role=pyatspi.ROLE_TABLE))
sequence.append(
    utils.AssertPresentationAction("Pick a Font dialog", [
from macaroon.playback import *
import utils

sequence = MacroSequence()

#sequence.append(WaitForDocLoad())
sequence.append(PauseAction(5000))

# Work around some new quirk in Gecko that causes this test to fail if
# run via the test harness rather than manually.
sequence.append(KeyComboAction("<Control>r"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Control>Home"))
sequence.append(utils.AssertPresentationAction(
    "1. Top of file",
    ["BRAILLE LINE:  ''",
     "     VISIBLE:  '', cursor=1"]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
    "2. Line Down",
    ["BRAILLE LINE:  'Line 1'",
     "     VISIBLE:  'Line 1', cursor=1",
     "SPEECH OUTPUT: 'Line 1'"]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
    "3. Line Down",
    ["BRAILLE LINE:  'Line 2 h2'",
Exemple #4
0
from macaroon.playback import *
import utils

sequence = MacroSequence()

sequence.append(WaitForDocLoad())

# Work around some new quirk in Gecko that causes this test to fail if
# run via the test harness rather than manually.
sequence.append(KeyComboAction("<Control>r"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_8"))
sequence.append(utils.AssertPresentationAction(
    "1. Flat review current line",
    ["BRAILLE LINE:  'On weaponry: $l'",
     "     VISIBLE:  'On weaponry: $l', cursor=1",
     "SPEECH OUTPUT: 'On weaponry:'"]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_9"))
sequence.append(utils.AssertPresentationAction(
    "2. Flat review next line",
    ["BRAILLE LINE:  'NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and fear. Fear and  $l'",
     "     VISIBLE:  'NOBODY expects the Spanish Inqui', cursor=1",
     "SPEECH OUTPUT: 'NOBODY expects the Spanish Inquisition! Our chief weapon is surprise. Surprise and fear. Fear and '"]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_9"))
sequence.append(utils.AssertPresentationAction(
    "3. Flat review next line",
#!/usr/bin/python

from macaroon.playback import *
import utils

sequence = MacroSequence()

# Work around some new quirk in Gecko that causes this test to fail if
# run via the test harness rather than manually.
sequence.append(KeyComboAction("<Control>r"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Control>Home"))
sequence.append(
    utils.AssertPresentationAction("1. Top of file", [
        "BRAILLE LINE:  'line 1'", "     VISIBLE:  'line 1', cursor=1",
        "SPEECH OUTPUT: 'line 1'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(
    utils.AssertPresentationAction("2. Line Down", [
        "BRAILLE LINE:  'line 2'", "     VISIBLE:  'line 2', cursor=1",
        "SPEECH OUTPUT: 'line 2'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Up"))
sequence.append(
    utils.AssertPresentationAction("3. Line Up", [
        "BRAILLE LINE:  'line 1'", "     VISIBLE:  'line 1', cursor=1",
Exemple #6
0
sequence = MacroSequence()

sequence.append(TypeAction("Line 1"))
sequence.append(KeyComboAction("Return"))
sequence.append(TypeAction("Line 2"))
sequence.append(KeyComboAction("Return"))
sequence.append(TypeAction("Line 3"))
sequence.append(KeyComboAction("Return"))
sequence.append(TypeAction("Line 4"))
sequence.append(KeyComboAction("Return"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Control>Home"))
sequence.append(
    utils.AssertPresentationAction("1. Return to top of document", [
        "BRAILLE LINE:  'soffice application Untitled 1 - LibreOffice Writer root pane Untitled 1 - LibreOffice Document Line 1 $l'",
        "     VISIBLE:  'Line 1 $l', cursor=1", "SPEECH OUTPUT: 'Line 1'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_Add"))
sequence.append(
    utils.AssertPresentationAction("2. Say all on document", [
        "SPEECH OUTPUT: 'Line 1'", "SPEECH OUTPUT: 'Line 2'",
        "SPEECH OUTPUT: 'Line 3'", "SPEECH OUTPUT: 'Line 4'"
    ]))

sequence.append(KeyComboAction("<Alt>F4"))

sequence.append(utils.AssertionSummaryAction())
sequence.start()
Exemple #7
0
#!/usr/bin/python

from macaroon.playback import *
import utils

sequence = MacroSequence()

sequence.append(WaitForDocLoad())

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_Enter"))
sequence.append(utils.AssertPresentationAction(
    "1. Where Am I on image",
    ["BRAILLE LINE:  'the image image'",
     "     VISIBLE:  'the image image', cursor=1",
     "SPEECH OUTPUT: 'the image image has long description'"]))

sequence.append(PauseAction(3000))
sequence.append(KeyComboAction("KP_Multiply"))
sequence.append(PauseAction(3000))
sequence.append(KeyComboAction("d"))
sequence.append(WaitForDocLoad())

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_Enter"))
sequence.append(utils.AssertPresentationAction(
    "2. Having selected View Description, do a Where Am I for new location",
    ["BRAILLE LINE:  'Pass h1'",
     "     VISIBLE:  'Pass h1', cursor=1",
          "SPEECH OUTPUT: 'heading level 1.'",
     "SPEECH OUTPUT: 'Pass'"]))
sequence = MacroSequence()

sequence.append(WaitForDocLoad())
sequence.append(PauseAction(5000))
sequence.append(KeyComboAction("Tab"))
sequence.append(KeyComboAction("Tab"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Tab"))
sequence.append(
    utils.AssertPresentationAction("1. Tab to the first combo box", [
        "BRAILLE LINE:  'US State test 1 (200% Courier font): California $l'",
        "     VISIBLE:  '(200% Courier font): California ', cursor=32",
        "BRAILLE LINE:  'Focus mode'", "     VISIBLE:  'Focus mode', cursor=0",
        "BRAILLE LINE:  'US State test 1 (200% Courier font): California $l'",
        "     VISIBLE:  '(200% Courier font): California ', cursor=32",
        "SPEECH OUTPUT: 'collapsed'",
        "SPEECH OUTPUT: 'US State test 1 (200% Courier font): entry California selected'",
        "SPEECH OUTPUT: 'Focus mode' voice=system"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(TypeAction("C"))
sequence.append(
    utils.AssertPresentationAction("2. Replace existing text with a 'C'", [
        "KNOWN ISSUE: The braille line is not quite right",
        "BRAILLE LINE:  'US State test 1 (200% Courier font): C $l'",
        "     VISIBLE:  '(200% Courier font): C $l', cursor=23",
        "BRAILLE LINE:  'US State test 1 (200% Courier font): US State test 1 (200% Courier font): combo box'",
        "     VISIBLE:  'te test 1 (200% Courier font): U', cursor=32",
        "SPEECH OUTPUT: 'expanded'"
import utils

sequence = MacroSequence()

#sequence.append(WaitForDocLoad())
sequence.append(PauseAction(5000))

# Work around some new quirk in Gecko that causes this test to fail if
# run via the test harness rather than manually.
sequence.append(KeyComboAction("<Control>r"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Control>Home"))
sequence.append(utils.AssertPresentationAction(
    "1. Top of file",
    ["BRAILLE LINE:  'Hello world'",
     "     VISIBLE:  'Hello world', cursor=1",
     "SPEECH OUTPUT: 'Hello world'"]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
    "2. Line Down",
    ["BRAILLE LINE:  'Paragraph 1'",
     "     VISIBLE:  'Paragraph 1', cursor=1",
     "SPEECH OUTPUT: 'link Paragraph 1'"]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
    "3. Line Down",
Exemple #10
0
sequence = MacroSequence()
import utils

sequence.append(KeyComboAction("<Control>f"))
sequence.append(TypeAction("Paned Widgets"))
sequence.append(KeyComboAction("Return"))
sequence.append(KeyComboAction("Return"))
sequence.append(PauseAction(3000))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Tab"))
sequence.append(
    utils.AssertPresentationAction("1. Tab to first checkbox", [
        "BRAILLE LINE:  'gtk3-demo application Panes frame Horizontal panel < > Resize check box'",
        "     VISIBLE:  '< > Resize check box', cursor=1",
        "SPEECH OUTPUT: 'Horizontal panel'",
        "SPEECH OUTPUT: 'Resize check box not checked'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_Enter"))
sequence.append(
    utils.AssertPresentationAction("2. Where Am I", [
        "BRAILLE LINE:  'gtk3-demo application Panes frame Horizontal panel < > Resize check box'",
        "     VISIBLE:  '< > Resize check box', cursor=1",
        "SPEECH OUTPUT: 'Horizontal Resize check box not checked.'",
        "SPEECH OUTPUT: 'Alt+R'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(TypeAction(" "))
Exemple #11
0
sequence = MacroSequence()

#sequence.append(WaitForDocLoad())
sequence.append(PauseAction(5000))

# Work around some new quirk in Gecko that causes this test to fail if
# run via the test harness rather than manually.
sequence.append(KeyComboAction("<Control>r"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Tab"))
sequence.append(
    utils.AssertPresentationAction("1. Tab to tree", [
        "BRAILLE LINE:  'embedded'", "     VISIBLE:  'embedded', cursor=1",
        "BRAILLE LINE:  'Fruits expanded list item'",
        "     VISIBLE:  'Fruits expanded list item', cursor=1",
        "SPEECH OUTPUT: 'Fruits.'", "SPEECH OUTPUT: 'expanded.'",
        "SPEECH OUTPUT: 'tree level 1'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_Enter"))
sequence.append(
    utils.AssertPresentationAction("2. Basic whereAmI", [
        "BRAILLE LINE:  'Fruits expanded list item'",
        "     VISIBLE:  'Fruits expanded list item', cursor=1",
        "SPEECH OUTPUT: 'list item.'", "SPEECH OUTPUT: 'Fruits.'",
        "SPEECH OUTPUT: '1 of 2.'", "SPEECH OUTPUT: 'expanded tree level 1.'"
    ]))

sequence.append(utils.StartRecordingAction())
 utils.AssertPresentationAction("1. o to first large chunk", [
     "BRAILLE LINE:  'I have of late but",
     "wherefore I know not lost all my mirth,",
     "forgone all custom of exercises;",
     "and indeed, it goes so heavily with",
     "my disposition that this goodly frame,",
     "the earth, seems to me a sterile promontory;",
     "this most excellent canopy, the air, look you,",
     "this brave o'erhanging firmament,",
     "this majestical roof fretted with golden fire",
     "why, it appeareth no other thing to me than a foul",
     "and pestilent congregation of vapours.",
     "What a piece of work is a man!",
     "how noble in reason! how infinite in faculties!",
     "in form and moving how express and admirable!",
     "in action how like an angel!", "in apprehension how like a god!",
     "the beauty of the world, the paragon of animals!'",
     "     VISIBLE:  'I have of late but", "wherefore I k', cursor=1",
     "SPEECH OUTPUT: 'I have of late but",
     "wherefore I know not lost all my mirth,",
     "forgone all custom of exercises;",
     "and indeed, it goes so heavily with",
     "my disposition that this goodly frame,",
     "the earth, seems to me a sterile promontory;",
     "this most excellent canopy, the air, look you,",
     "this brave o'erhanging firmament,",
     "this majestical roof fretted with golden fire",
     "why, it appeareth no other thing to me than a foul",
     "and pestilent congregation of vapours.",
     "What a piece of work is a man!",
     "how noble in reason! how infinite in faculties!",
     "in form and moving how express and admirable!",
     "in action how like an angel!", "in apprehension how like a god!",
     "the beauty of the world, the paragon of animals!'"
 ]))
Exemple #13
0
#!/usr/bin/python

from macaroon.playback import *
import utils

sequence = MacroSequence()

sequence.append(WaitForDocLoad())

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Control>Home"))
sequence.append(
    utils.AssertPresentationAction("1. Top of file", [
        "BRAILLE LINE:  'MathML fraction test cases'",
        "     VISIBLE:  'MathML fraction test cases', cursor=1",
        "SPEECH OUTPUT: 'MathML fraction test cases'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(
    utils.AssertPresentationAction("2. Line Down", [
        "BRAILLE LINE:  'math'", "     VISIBLE:  'math', cursor=0",
        "SPEECH OUTPUT: 'fraction start.'", "SPEECH OUTPUT: 'a over b.'",
        "SPEECH OUTPUT: 'fraction end.'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(
    utils.AssertPresentationAction("3. Line Down", [
sequence.append(TypeAction("  "))
sequence.append(KeyComboAction("Tab"))
sequence.append(KeyComboAction("Return"))

sequence.append(TypeAction("  "))
sequence.append(KeyComboAction("Tab"))
sequence.append(TypeAction("foo"))
sequence.append(KeyComboAction("Return"))
sequence.append(PauseAction(3000))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Control>Home"))
sequence.append(
    utils.AssertPresentationAction("1. 1 Tab", [
        "KNOWN ISSUE: We verbalize AND speak it rather than just verbalizing it",
        "SPEECH OUTPUT: '1 tab ' voice=system", "SPEECH OUTPUT: '	'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(
    utils.AssertPresentationAction(
        "2. 1 Tab and the word 'foo'",
        ["SPEECH OUTPUT: '1 tab ' voice=system", "SPEECH OUTPUT: '	foo'"]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(
    utils.AssertPresentationAction(
        "3. 2 Tabs",
        ["SPEECH OUTPUT: '2 tabs ' voice=system", "SPEECH OUTPUT: '		'"]))
Exemple #15
0
import utils

sequence = MacroSequence()

#sequence.append(WaitForDocLoad())
sequence.append(PauseAction(5000))

# Work around some new quirk in Gecko that causes this test to fail if
# run via the test harness rather than manually.
sequence.append(KeyComboAction("<Control>r"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Control>Home"))
sequence.append(
    utils.AssertPresentationAction("1. Top of file", [
        "BRAILLE LINE:  'Line 1'", "     VISIBLE:  'Line 1', cursor=1",
        "SPEECH OUTPUT: 'Line 1'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(
    utils.AssertPresentationAction("2. Line Down", [
        "BRAILLE LINE:  'Line 2 foo and bar'",
        "     VISIBLE:  'Line 2 foo and bar', cursor=1",
        "SPEECH OUTPUT: 'Line 2'", "SPEECH OUTPUT: 'foo'",
        "SPEECH OUTPUT: 'link.'", "SPEECH OUTPUT: 'and'",
        "SPEECH OUTPUT: 'bar'", "SPEECH OUTPUT: 'link.'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
Exemple #16
0
sequence = MacroSequence()

sequence.append(KeyComboAction("<Control>f"))
sequence.append(TypeAction("Combo Boxes"))
sequence.append(KeyComboAction("Return"))
sequence.append(PauseAction(3000))

sequence.append(utils.StartRecordingAction())
sequence.append(TypeAction(" "))
sequence.append(
    utils.AssertPresentationAction("1. Warning combo box item", [
        "BRAILLE LINE:  'gtk3-demo application Combo Boxes frame'",
        "     VISIBLE:  'Combo Boxes frame', cursor=1",
        "BRAILLE LINE:  'gtk3-demo application Combo Boxes frame Items with icons panel Warning combo box'",
        "     VISIBLE:  'Warning combo box', cursor=1",
        "SPEECH OUTPUT: 'Combo Boxes frame'",
        "SPEECH OUTPUT: 'Items with icons panel.'",
        "SPEECH OUTPUT: 'Warning combo box.'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_Enter"))
sequence.append(
    utils.AssertPresentationAction("2. Warning combo box item Where Am I", [
        "BRAILLE LINE:  'gtk3-demo application Combo Boxes frame Items with icons panel Warning combo box'",
        "     VISIBLE:  'Warning combo box', cursor=1",
        "SPEECH OUTPUT: 'combo box.'", "SPEECH OUTPUT: 'Warning 1 of 5'"
    ]))

sequence.append(utils.StartRecordingAction())
#sequence.append(WaitForDocLoad())
sequence.append(PauseAction(5000))

# Work around some new quirk in Gecko that causes this test to fail if
# run via the test harness rather than manually.
sequence.append(KeyComboAction("<Control>r"))

sequence.append(KeyComboAction("<Control>Home"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(
    utils.AssertPresentationAction("1. line Down", [
        "BRAILLE LINE:  'Magic disappearing text trick: tab to me and I disappear $l'",
        "     VISIBLE:  'Magic disappearing text trick: t', cursor=1",
        "SPEECH OUTPUT: 'Magic disappearing text trick:'",
        "SPEECH OUTPUT: 'entry tab to me and I disappear'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(
    utils.AssertPresentationAction("2. line Down", [
        "BRAILLE LINE:  'Tell me a secret:  $l'",
        "     VISIBLE:  'Tell me a secret:  $l', cursor=1",
        "SPEECH OUTPUT: 'Tell me a secret:'", "SPEECH OUTPUT: 'password text'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(
Exemple #18
0
sequence = MacroSequence()

sequence.append(KeyPressAction(0, None, "KP_Insert"))
sequence.append(TypeAction("h"))
sequence.append(KeyReleaseAction(0, None, "KP_Insert"))

sequence.append(KeyComboAction("F1"))
sequence.append(PauseAction(2000))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("k"))
sequence.append(utils.AssertPresentationAction(
    "1. k for next link",
    ["BRAILLE LINE:  ' Welcome to Orca'",
     "     VISIBLE:  ' Welcome to Orca', cursor=2",
     "BRAILLE LINE:  ' Welcome to Orca'",
     "     VISIBLE:  ' Welcome to Orca', cursor=2",
     "SPEECH OUTPUT: 'Welcome to Orca",
     "Introducing the Orca screen reader",
     " link'"]))

sequence.append(KeyComboAction("Return"))
sequence.append(PauseAction(2000))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("l"))
sequence.append(utils.AssertPresentationAction(
    "2. l for next list",
    ["BRAILLE LINE:  'List with 3 items'",
     "     VISIBLE:  'List with 3 items', cursor=0",
     "BRAILLE LINE:  ' The method for configuring Orca to be launched automatically as your preferred screen reader will depend upon which desktop environment you use. For instance, in GNOME 3.x this option can be found in the Universal Access Control Center panel on the Seeing page.'",
Exemple #19
0
sequence = MacroSequence()

sequence.append(KeyComboAction("<Control>f"))
sequence.append(TypeAction("Printing"))
sequence.append(KeyComboAction("Return"))

sequence.append(KeyComboAction("Right"))
sequence.append(PauseAction(3000))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Alt>o"))
sequence.append(
    utils.AssertPresentationAction("1. Combo box", [
        "BRAILLE LINE:  'gtk-demo application Print dialog Page Setup page tab Only print: All sheets combo box'",
        "     VISIBLE:  'Only print: All sheets combo box', cursor=1",
        "SPEECH OUTPUT: 'Only print: All sheets combo box.'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_Enter"))
sequence.append(
    utils.AssertPresentationAction("2. Where Am I", [
        "BRAILLE LINE:  'gtk-demo application Print dialog Page Setup page tab Only print: All sheets combo box'",
        "     VISIBLE:  'Only print: All sheets combo box', cursor=13",
        "SPEECH OUTPUT: 'Only print: combo box.'",
        "SPEECH OUTPUT: 'All sheets 1 of 3.'", "SPEECH OUTPUT: 'Alt+O'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
#!/usr/bin/python

from macaroon.playback import *
import utils

sequence = MacroSequence()

sequence.append(utils.StartRecordingAction())
sequence.append(WaitForWindowActivate("ToolStripProgressBar control", None))
sequence.append(
    utils.AssertPresentationAction("button focus", [
        "BRAILLE LINE:  'ToolStripProgressBar Sample Frame'",
        "     VISIBLE:  'ToolStripProgressBar Sample Fram', cursor=1",
        "BRAILLE LINE:  'button1 Button'",
        "     VISIBLE:  'button1 Button', cursor=1",
        "SPEECH OUTPUT: 'ToolStripProgressBar Sample frame'",
        "SPEECH OUTPUT: ''", "SPEECH OUTPUT: 'button1 button'"
    ]))
sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Return"))
sequence.append(
    utils.AssertPresentationAction("press enter to increase the value", [""]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_9"))
sequence.append(
    utils.AssertPresentationAction("flatreview lndn to see the value", [
        "BRAILLE LINE:  'It is 20% of 100%'",
        "     VISIBLE:  'It is 20% of 100%', cursor=1",
        "SPEECH OUTPUT: 'It is 20% of 100%'"
    ]))
Exemple #21
0
#!/usr/bin/python

from macaroon.playback import *
import utils

sequence = MacroSequence()

sequence.append(utils.StartRecordingAction())
sequence.append(WaitForWindowActivate("Horizontal Splitter", None))
sequence.append(
    utils.AssertPresentationAction("app active", [
        "BRAILLE LINE:  'Horizontal Splitter Frame'",
        "     VISIBLE:  'Horizontal Splitter Frame', cursor=1",
        "SPEECH OUTPUT: 'Horizontal Splitter frame'"
    ]))
sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_8"))
sequence.append(
    utils.AssertPresentationAction(
        "switch to flat-review and read the current line (KP_8)", [
            "BRAILLE LINE:  'label3 on one side against splitter'",
            "     VISIBLE:  'label3 on one side against split', cursor=1",
            "SPEECH OUTPUT: 'label3 on one side against splitter'"
        ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_9"))
sequence.append(
    utils.AssertPresentationAction("line down to see the next label (KP_9)", [
        "BRAILLE LINE:  'label2 on one side against splitter'",
        "     VISIBLE:  'label2 on one side against split', cursor=1",
Exemple #22
0
#!/usr/bin/python

"""Test presentation of the Manage Names combobox"""

from macaroon.playback import *
import utils

sequence = MacroSequence()
sequence.append(PauseAction(5000))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Shift><Control>t"))
sequence.append(utils.AssertPresentationAction(
    "1. Shift+Ctrl+T",
    ["BRAILLE LINE:  'Untitled 1 - LibreOffice Calc frame Untitled 1 - LibreOffice Calc root pane Formula Tool Bar tool bar A1 $l combo box'",
     "     VISIBLE:  'A1 $l combo box', cursor=3",
     "SPEECH OUTPUT: 'Formula Tool Bar tool bar'",
     "SPEECH OUTPUT: 'Name Box editable combo box.'",
     "SPEECH OUTPUT: 'A1 selected'"]))

sequence.append(KeyComboAction("<Control>a"))
sequence.append(KeyComboAction("BackSpace"))
sequence.append(PauseAction(3000))

sequence.append(utils.StartRecordingAction())
sequence.append(TypeAction("C3"))
sequence.append(utils.AssertPresentationAction(
    "2. Type 'C3' - keyecho is disabled",
    ["BRAILLE LINE:  'Untitled 1 - LibreOffice Calc frame Untitled 1 - LibreOffice Calc root pane Formula Tool Bar tool bar Name Box C $l'",
     "     VISIBLE:  'C $l', cursor=2",
     "BRAILLE LINE:  'Untitled 1 - LibreOffice Calc frame Untitled 1 - LibreOffice Calc root pane Formula Tool Bar tool bar Name Box C3 $l'",
sequence.append(KeyComboAction("End"))
sequence.append(KeyComboAction("Up"))
sequence.append(KeyComboAction("Up"))
sequence.append(KeyComboAction("Up"))
sequence.append(KeyComboAction("Up"))
sequence.append(KeyComboAction("<Shift><Control>Right"))
sequence.append(KeyComboAction("Down"))
sequence.append(KeyComboAction("Return"))
sequence.append(PauseAction(3000))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Control>a"))
sequence.append(utils.AssertPresentationAction(
    "1. Select all'",
    ["BRAILLE LINE:  'gtk3-demo application Hypertext frame Some text to show that simple hyper text can easily be realized with  $l'",
     "     VISIBLE:  'Some text to show that simple hy', cursor=1",
     "SPEECH OUTPUT: 'entire document selected' voice=system"]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Delete"))
sequence.append(utils.AssertPresentationAction(
    "2. Delete the selection",
    ["BRAILLE LINE:  'gtk3-demo application Hypertext frame  $l'",
     "     VISIBLE:  ' $l', cursor=1",
     "BRAILLE LINE:  'Selection deleted.'",
     "     VISIBLE:  'Selection deleted.', cursor=0",
     "BRAILLE LINE:  'gtk3-demo application Hypertext frame  $l'",
     "     VISIBLE:  'frame  $l', cursor=7",
     "SPEECH OUTPUT: 'Selection deleted.' voice=system"]))
Exemple #24
0
import utils

sequence = MacroSequence()

sequence.append(KeyComboAction("<Control>f"))
sequence.append(TypeAction("Paned Widgets"))
sequence.append(KeyComboAction("Return"))
sequence.append(KeyComboAction("Return"))
sequence.append(PauseAction(3000))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("F8"))
sequence.append(
    utils.AssertPresentationAction("1. vertical splitter", [
        "BRAILLE LINE:  'gtk3-demo application Paned Widgets frame 88 vertical splitter'",
        "     VISIBLE:  '88 vertical splitter', cursor=1",
        "SPEECH OUTPUT: 'vertical splitter 88'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Right"))
sequence.append(
    utils.AssertPresentationAction("2. vertical splitter increment value", [
        "BRAILLE LINE:  'gtk3-demo application Paned Widgets frame 89 vertical splitter'",
        "     VISIBLE:  '89 vertical splitter', cursor=1",
        "SPEECH OUTPUT: '89'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_Enter"))
sequence.append(
# Work around some new quirk in Gecko that causes this test to fail if
# run via the test harness rather than manually.
sequence.append(KeyComboAction("<Control>r"))

sequence.append(PauseAction(3000))
sequence.append(KeyComboAction("Tab"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Control>End"))
sequence.append(utils.AssertPresentationAction(
    "1. Bottom of file",
    ["BRAILLE LINE:  'Hosted by Red Hat.'",
     "     VISIBLE:  'Hosted by Red Hat.', cursor=0",
     "BRAILLE LINE:  'The GNOME Project'",
     "     VISIBLE:  'The GNOME Project', cursor=1",
     "SPEECH OUTPUT: 'Hosted by'",
     "SPEECH OUTPUT: 'Red Hat'",
     "SPEECH OUTPUT: 'link.'",
     "SPEECH OUTPUT: '.'",
     "SPEECH OUTPUT: 'The GNOME Project link.'"]))

#sequence.append(utils.StartRecordingAction())
#sequence.append(KeyComboAction("Up"))
#sequence.append(utils.AssertPresentationAction(
#    "2. Line Up",
#    ["BRAILLE LINE:  'Copyright \xa9 2005, 2006, 2007 The GNOME Project.'",
#     "     VISIBLE:  'Copyright \xa9 2005, 2006, 2007 The', cursor=1",
#     "SPEECH OUTPUT: 'Copyright \xa9 2005, 2006, 2007'",
#     "SPEECH OUTPUT: 'The GNOME Project'",
#     "SPEECH OUTPUT: 'link.'",
Exemple #26
0
from macaroon.playback import *
import utils

sequence = MacroSequence()

sequence.append(KeyComboAction("<Control>f"))
sequence.append(TypeAction("Printing"))
sequence.append(KeyComboAction("Return"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Alt>s"))
sequence.append(
    utils.AssertPresentationAction("1. Give focus to spin button", [
        "BRAILLE LINE:  'gtk-demo application Print dialog General page tab Copies: 1 $l'",
        "     VISIBLE:  'Copies: 1 $l', cursor=10",
        "BRAILLE LINE:  'gtk-demo application Print dialog General page tab Copies: 1 $l'",
        "     VISIBLE:  'Copies: 1 $l', cursor=10",
        "SPEECH OUTPUT: 'General page tab.'",
        "SPEECH OUTPUT: 'Copies: 1 selected spin button.'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_Enter"))
sequence.append(
    utils.AssertPresentationAction("2. Where Am I", [
        "BRAILLE LINE:  'gtk-demo application Print dialog General page tab Copies: 1 $l'",
        "     VISIBLE:  'Copies: 1 $l', cursor=10",
        "SPEECH OUTPUT: 'Copies: spin button 1 selected.'",
        "SPEECH OUTPUT: 'Alt+S'"
    ]))

sequence.append(TypeAction("15"))
Exemple #27
0
sequence = MacroSequence()

sequence.append(KeyComboAction("<Control>f"))
sequence.append(TypeAction("Dialog and Message Boxes"))
sequence.append(KeyComboAction("Return"))
sequence.append(KeyComboAction("space"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Tab"))
sequence.append(
    utils.AssertPresentationAction("1. This message box label", [
        "BRAILLE LINE:  'This message box has been popped up the following",
        "number of times: number of times:'",
        "     VISIBLE:  'mber of times: number of times:', cursor=32",
        "BRAILLE LINE:  'This message box has been popped up the following",
        "number of times: number of times:'",
        "     VISIBLE:  'mber of times: number of times:', cursor=32",
        "SPEECH OUTPUT: 'This message box has been popped up the following",
        "number of times: selected label'"
    ]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_Enter"))
sequence.append(
    utils.AssertPresentationAction("2. This message box label Where Am I", [
        "BRAILLE LINE:  'This message box has been popped up the following",
        "number of times: number of times:'",
        "     VISIBLE:  'mber of times: number of times:', cursor=32",
        "SPEECH OUTPUT: 'This message box has been popped up the following",
        "number of times: selected label'"
    ]))
sequence = MacroSequence()
import utils

sequence.append(KeyComboAction("<Control>f"))
sequence.append(TypeAction("Application main window"))
sequence.append(KeyComboAction("Return"))
sequence.append(KeyComboAction("Return"))
sequence.append(KeyComboAction("<Alt>p"))
sequence.append(KeyComboAction("Down"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(
    utils.AssertPresentationAction("1. Arrow to check menu item - checked", [
        "BRAILLE LINE:  'gtk-demo application Application Window frame <x> Bold check menu item(Ctrl+B)'",
        "     VISIBLE:  '<x> Bold check menu item(Ctrl+B)', cursor=1",
        "SPEECH OUTPUT: 'Bold check menu item checked Ctrl+B'"
    ]))

sequence.append(KeyComboAction("Return"))
sequence.append(KeyComboAction("Escape"))
sequence.append(KeyComboAction("<Alt>p"))
sequence.append(KeyComboAction("Down"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(
    utils.
    AssertPresentationAction("2. Arrow to check menu item - not checked", [
        "BRAILLE LINE:  'gtk-demo application Application Window frame < > Bold check menu item(Ctrl+B)'",
        "     VISIBLE:  '< > Bold check menu item(Ctrl+B)', cursor=1",
Exemple #29
0
sequence.append(KeyComboAction("Down"))
sequence.append(KeyComboAction("Down"))
sequence.append(PauseAction(3000))
sequence.append(KeyComboAction("Return"))

sequence.append(TypeAction("Line 1"))
sequence.append(KeyComboAction("Return"))
sequence.append(TypeAction("Line 2"))
sequence.append(KeyComboAction("Return"))
sequence.append(KeyComboAction("<Control>Home"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_8"))
sequence.append(utils.AssertPresentationAction(
    "1. Review current line.",
    ["BRAILLE LINE:  'Line 1 $l'",
     "     VISIBLE:  'Line 1 $l', cursor=1",
     "SPEECH OUTPUT: 'Line 1'"]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_9"))
sequence.append(utils.AssertPresentationAction(
    "2. Review next line.",
    ["BRAILLE LINE:  'Line 2 $l'",
     "     VISIBLE:  'Line 2 $l', cursor=1",
     "SPEECH OUTPUT: 'Line 2'"]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("KP_8"))
sequence.append(KeyComboAction("KP_8"))
sequence.append(utils.AssertPresentationAction(
"""Test of line navigation."""

from macaroon.playback import *
import utils

sequence = MacroSequence()

# Work around some new quirk in Gecko that causes this test to fail if
# run via the test harness rather than manually.
sequence.append(KeyComboAction("<Control>r"))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("<Control>Home"))
sequence.append(utils.AssertPresentationAction(
    "1. Top of file",
    ["BRAILLE LINE:  'Before the entry'",
     "     VISIBLE:  'Before the entry', cursor=1",
     "SPEECH OUTPUT: 'Before the entry'"]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(
    "2. Line Down",
    ["BRAILLE LINE:  'Label:'",
     "     VISIBLE:  'Label:', cursor=1",
     "SPEECH OUTPUT: 'Label'",
     "SPEECH OUTPUT: ':'"]))

sequence.append(utils.StartRecordingAction())
sequence.append(KeyComboAction("Down"))
sequence.append(utils.AssertPresentationAction(