Initial commit, very few changes from orca 45. Added xfce4-notification daemon support.
This commit is contained in:
72
test/keystrokes/gnome-terminal/background_updates.py
Normal file
72
test/keystrokes/gnome-terminal/background_updates.py
Normal file
@ -0,0 +1,72 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
utils.setClipboardText('for i in {0..50}; do echo "Count: $i"; sleep 2; done')
|
||||
|
||||
sequence = MacroSequence()
|
||||
sequence.append(KeyComboAction("<Control><Shift>v"))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
|
||||
sequence.append(KeyComboAction("<Control><Shift>t"))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(PauseAction(2000))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. Return",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: '$ '"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(PauseAction(2000))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"2. Return",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: '$ '"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(PauseAction(2000))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"3. Return",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: '$ '"]))
|
||||
|
||||
sequence.append(KeyComboAction("<Control><Shift>n"))
|
||||
sequence.append(PauseAction(2000))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(PauseAction(2000))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"4. Return",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: '$ '"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(PauseAction(2000))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"5. Return",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: '$ '"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(PauseAction(2000))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"6. Return",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: '$ '"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
19
test/keystrokes/gnome-terminal/command_not_found.py
Normal file
19
test/keystrokes/gnome-terminal/command_not_found.py
Normal file
@ -0,0 +1,19 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
sequence = MacroSequence()
|
||||
sequence.append(PauseAction(3000))
|
||||
sequence.append(TypeAction("foo"))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. Return after typing 'foo'",
|
||||
["BRAILLE LINE: ''",
|
||||
" VISIBLE: '', cursor=1",
|
||||
"SPEECH OUTPUT: 'bash: foo: command not found...'"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
53
test/keystrokes/gnome-terminal/exit_shell.py
Normal file
53
test/keystrokes/gnome-terminal/exit_shell.py
Normal file
@ -0,0 +1,53 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
utils.setClipboardText('PS1="prompt> "')
|
||||
|
||||
sequence = MacroSequence()
|
||||
|
||||
sequence.append(PauseAction(3000))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. Return in old shell",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: '$ '"]))
|
||||
|
||||
sequence.append(TypeAction("bash"))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
|
||||
sequence.append(KeyComboAction("<Control><Shift>v"))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"2. Return in new shell with changed prompt",
|
||||
["BRAILLE LINE: 'prompt> '",
|
||||
" VISIBLE: 'prompt> ', cursor=9",
|
||||
"SPEECH OUTPUT: 'prompt> '"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("<Control>d"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"3. Ctrl+D to exit new shell",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: 'prompt> exit",
|
||||
"$ '"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"4. Return in old shell",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: '$ '"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
30
test/keystrokes/gnome-terminal/ls.py
Normal file
30
test/keystrokes/gnome-terminal/ls.py
Normal file
@ -0,0 +1,30 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
tmpdir = "/tmp/gnome-terminal-wd"
|
||||
for i in range(10):
|
||||
filename = os.path.join(tmpdir, "another_test_file_%s" % i)
|
||||
os.close(os.open(filename, os.O_CREAT, 0o700))
|
||||
|
||||
sequence = MacroSequence()
|
||||
sequence.append(PauseAction(3000))
|
||||
sequence.append(TypeAction("ls"))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. ls",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: 'another_test_file_0 another_test_file_4 another_test_file_8",
|
||||
"another_test_file_1 another_test_file_5 another_test_file_9",
|
||||
"another_test_file_2 another_test_file_6",
|
||||
"another_test_file_3 another_test_file_7",
|
||||
"$ '"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
129
test/keystrokes/gnome-terminal/ls_flat_review.py
Normal file
129
test/keystrokes/gnome-terminal/ls_flat_review.py
Normal file
@ -0,0 +1,129 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
tmpdir = "/tmp/gnome-terminal-wd"
|
||||
for i in range(10):
|
||||
filename = os.path.join(tmpdir, "another_test_file_%s" % i)
|
||||
os.close(os.open(filename, os.O_CREAT, 0o700))
|
||||
|
||||
sequence = MacroSequence()
|
||||
sequence.append(PauseAction(3000))
|
||||
sequence.append(TypeAction("ls"))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_8"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. Review current line",
|
||||
["BRAILLE LINE: '$ $l'",
|
||||
" VISIBLE: '$ $l', cursor=3",
|
||||
"SPEECH OUTPUT: '$ ",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"2. Review previous line",
|
||||
["BRAILLE LINE: 'another_test_file_3 another_test_file_7 $l'",
|
||||
" VISIBLE: 'another_test_file_3 another_tes', cursor=1",
|
||||
"SPEECH OUTPUT: 'another_test_file_3 another_test_file_7",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"3. Review previous line",
|
||||
["BRAILLE LINE: 'another_test_file_2 another_test_file_6 $l'",
|
||||
" VISIBLE: 'another_test_file_2 another_tes', cursor=1",
|
||||
"SPEECH OUTPUT: 'another_test_file_2 another_test_file_6",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"4. Review previous line",
|
||||
["BRAILLE LINE: 'another_test_file_1 another_test_file_5 another_test_file_9 $l'",
|
||||
" VISIBLE: 'another_test_file_1 another_tes', cursor=1",
|
||||
"SPEECH OUTPUT: 'another_test_file_1 another_test_file_5 another_test_file_9",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"5. Review previous line",
|
||||
["BRAILLE LINE: 'another_test_file_0 another_test_file_4 another_test_file_8 $l'",
|
||||
" VISIBLE: 'another_test_file_0 another_tes', cursor=1",
|
||||
"SPEECH OUTPUT: 'another_test_file_0 another_test_file_4 another_test_file_8",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"6. Review next line",
|
||||
["BRAILLE LINE: 'another_test_file_1 another_test_file_5 another_test_file_9 $l'",
|
||||
" VISIBLE: 'another_test_file_1 another_tes', cursor=1",
|
||||
"SPEECH OUTPUT: 'another_test_file_1 another_test_file_5 another_test_file_9",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyPressAction(0, None, "KP_Insert"))
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"7. Review first line",
|
||||
["BRAILLE LINE: 'File Edit View Search Terminal Help $l'",
|
||||
" VISIBLE: 'File Edit View Search Terminal H', cursor=1",
|
||||
"SPEECH OUTPUT: 'File Edit View Search Terminal Help'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"8. Review next line",
|
||||
["BRAILLE LINE: '$ ls $l'",
|
||||
" VISIBLE: '$ ls $l', cursor=1",
|
||||
"SPEECH OUTPUT: '$ ls",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"9. Review next line",
|
||||
["BRAILLE LINE: ' $l'",
|
||||
" VISIBLE: ' $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'blank'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"10. Review next line",
|
||||
["BRAILLE LINE: 'another_test_file_0 another_test_file_4 another_test_file_8 $l'",
|
||||
" VISIBLE: 'another_test_file_0 another_tes', cursor=1",
|
||||
"SPEECH OUTPUT: 'another_test_file_0 another_test_file_4 another_test_file_8",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyPressAction(0, None, "KP_Insert"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"11. Review last line",
|
||||
["KNOWN ISSUE: We're not finding the bottom",
|
||||
"BRAILLE LINE: ' $l'",
|
||||
" VISIBLE: ' $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'blank'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"12. Review previous line",
|
||||
["KNOWN ISSUE: We're not finding the bottom",
|
||||
"BRAILLE LINE: ' $l'",
|
||||
" VISIBLE: ' $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'blank'"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
264
test/keystrokes/gnome-terminal/man_page.py
Normal file
264
test/keystrokes/gnome-terminal/man_page.py
Normal file
@ -0,0 +1,264 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
sequence = MacroSequence()
|
||||
|
||||
sequence.append(PauseAction(3000))
|
||||
sequence.append(TypeAction("man orca"))
|
||||
sequence.append(PauseAction(3000))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(PauseAction(3000))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. Return",
|
||||
["BRAILLE LINE: ''",
|
||||
" VISIBLE: '', cursor=1",
|
||||
"BRAILLE LINE: ''",
|
||||
" VISIBLE: '', cursor=1",
|
||||
"BRAILLE LINE: ' Manual page orca(1) line 1 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"BRAILLE LINE: ' Manual page orca(1) line 1 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"SPEECH OUTPUT: 'orca(1) General Commands Manual orca(1)",
|
||||
"",
|
||||
"NAME",
|
||||
" orca - a scriptable screen reader",
|
||||
"",
|
||||
"SYNOPSIS",
|
||||
" orca [option...]",
|
||||
"",
|
||||
"DESCRIPTION",
|
||||
" orca is a screen reader for people with visual impairments, it provides",
|
||||
" alternative access to the desktop by using speech synthesis and",
|
||||
" braille.",
|
||||
"",
|
||||
" orca works with applications and toolkits that support the Assistive",
|
||||
" Technology Service Provider Interface (AT-SPI), which is the primary",
|
||||
" assistive technology infrastructure for Linux and Solaris. Applications",
|
||||
" and toolkits supporting the AT-SPI include the GNOME Gtk+ toolkit, the",
|
||||
" Java platform's Swing toolkit, LibreOffice, Gecko, and WebKitGtk. AT-",
|
||||
" SPI support for the KDE Qt toolkit is being pursued.",
|
||||
"",
|
||||
"OPTIONS",
|
||||
" -s, --setup",
|
||||
" When starting orca, initiate the GUI-based configuration.",
|
||||
" Manual page orca(1) line 1 (press h for help or q to quit)'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("space"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"2. Space",
|
||||
["BRAILLE LINE: ' Manual page orca(1) line 24 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"SPEECH OUTPUT: ' When starting orca, use dirname as an alternate directory for",
|
||||
" the user preferences.",
|
||||
"",
|
||||
" -e, --enable=speech|braille|braille-monitor",
|
||||
" When starting orca, force the enabling of the supplied options.",
|
||||
"",
|
||||
" -d, --disable=speech|braille|braille-monitor",
|
||||
" When starting orca, force the disabling of the supplied options.",
|
||||
"",
|
||||
" -l, --list-apps",
|
||||
" Prints the names of all the currently running applications.",
|
||||
" This is used primarily for debugging purposes to see if orca can",
|
||||
" talk to the accessibility infrastructure. Note that if orca is",
|
||||
" already running, this will not kill the other orca process. It",
|
||||
" will just list the currently running applications, and you will",
|
||||
" see orca listed twice: once for the existing orca and once for",
|
||||
" this instance.",
|
||||
"",
|
||||
" --debug",
|
||||
" Enables debug output for orca and sends all debug output to a",
|
||||
" file with a name of the form 'debug-YYYY-MM-DD-HH:MM:SS.out' in",
|
||||
" Manual page orca(1) line 24 (press h for help or q to quit)'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("<Control>b"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"3. Ctrl+b",
|
||||
["BRAILLE LINE: ' Manual page orca(1) line 1 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"SPEECH OUTPUT: 'orca(1) General Commands Manual orca(1)",
|
||||
"",
|
||||
"NAME",
|
||||
" orca - a scriptable screen reader",
|
||||
"",
|
||||
"SYNOPSIS",
|
||||
" orca [option...]",
|
||||
"",
|
||||
"DESCRIPTION",
|
||||
" orca is a screen reader for people with visual impairments, it provides",
|
||||
" alternative access to the desktop by using speech synthesis and",
|
||||
" braille.",
|
||||
"",
|
||||
" orca works with applications and toolkits that support the Assistive",
|
||||
" Technology Service Provider Interface (AT-SPI), which is the primary",
|
||||
" assistive technology infrastructure for Linux and Solaris. Applications",
|
||||
" and toolkits supporting the AT-SPI include the GNOME Gtk+ toolkit, the",
|
||||
" Java platform's Swing toolkit, LibreOffice, Gecko, and WebKitGtk. AT-",
|
||||
" SPI support for the KDE Qt toolkit is being pursued.",
|
||||
"",
|
||||
"OPTIONS",
|
||||
" -s, --setup",
|
||||
" When starting orca, initiate the GUI-based configuration.",
|
||||
" Manual page orca(1) line 1 (press h for help or q to quit)'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("<Control>f"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"4. Ctrl+f",
|
||||
["BRAILLE LINE: ' Manual page orca(1) line 24 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"BRAILLE LINE: ' Manual page orca(1) line 24 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"SPEECH OUTPUT: ' When starting orca, use dirname as an alternate directory for",
|
||||
" the user preferences.",
|
||||
"",
|
||||
" -e, --enable=speech|braille|braille-monitor",
|
||||
" When starting orca, force the enabling of the supplied options.",
|
||||
"",
|
||||
" -d, --disable=speech|braille|braille-monitor",
|
||||
" When starting orca, force the disabling of the supplied options.",
|
||||
"",
|
||||
" -l, --list-apps",
|
||||
" Prints the names of all the currently running applications.",
|
||||
" This is used primarily for debugging purposes to see if orca can",
|
||||
" talk to the accessibility infrastructure. Note that if orca is",
|
||||
" already running, this will not kill the other orca process. It",
|
||||
" will just list the currently running applications, and you will",
|
||||
" see orca listed twice: once for the existing orca and once for",
|
||||
" this instance.",
|
||||
"",
|
||||
" --debug",
|
||||
" Enables debug output for orca and sends all debug output to a",
|
||||
" file with a name of the form 'debug-YYYY-MM-DD-HH:MM:SS.out' in",
|
||||
" Manual page orca(1) line 24 (press h for help or q to quit)'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("b"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"5. b",
|
||||
["BRAILLE LINE: ' Manual page orca(1) line 1 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"SPEECH OUTPUT: 'orca(1) General Commands Manual orca(1)",
|
||||
"",
|
||||
"NAME",
|
||||
" orca - a scriptable screen reader",
|
||||
"",
|
||||
"SYNOPSIS",
|
||||
" orca [option...]",
|
||||
"",
|
||||
"DESCRIPTION",
|
||||
" orca is a screen reader for people with visual impairments, it provides",
|
||||
" alternative access to the desktop by using speech synthesis and",
|
||||
" braille.",
|
||||
"",
|
||||
" orca works with applications and toolkits that support the Assistive",
|
||||
" Technology Service Provider Interface (AT-SPI), which is the primary",
|
||||
" assistive technology infrastructure for Linux and Solaris. Applications",
|
||||
" and toolkits supporting the AT-SPI include the GNOME Gtk+ toolkit, the",
|
||||
" Java platform's Swing toolkit, LibreOffice, Gecko, and WebKitGtk. AT-",
|
||||
" SPI support for the KDE Qt toolkit is being pursued.",
|
||||
"",
|
||||
"OPTIONS",
|
||||
" -s, --setup",
|
||||
" When starting orca, initiate the GUI-based configuration.",
|
||||
" Manual page orca(1) line 1 (press h for help or q to quit)'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("f"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"6. f",
|
||||
["BRAILLE LINE: ' Manual page orca(1) line 24 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"SPEECH OUTPUT: ' When starting orca, use dirname as an alternate directory for",
|
||||
" the user preferences.",
|
||||
"",
|
||||
" -e, --enable=speech|braille|braille-monitor",
|
||||
" When starting orca, force the enabling of the supplied options.",
|
||||
"",
|
||||
" -d, --disable=speech|braille|braille-monitor",
|
||||
" When starting orca, force the disabling of the supplied options.",
|
||||
"",
|
||||
" -l, --list-apps",
|
||||
" Prints the names of all the currently running applications.",
|
||||
" This is used primarily for debugging purposes to see if orca can",
|
||||
" talk to the accessibility infrastructure. Note that if orca is",
|
||||
" already running, this will not kill the other orca process. It",
|
||||
" will just list the currently running applications, and you will",
|
||||
" see orca listed twice: once for the existing orca and once for",
|
||||
" this instance.",
|
||||
"",
|
||||
" --debug",
|
||||
" Enables debug output for orca and sends all debug output to a",
|
||||
" file with a name of the form 'debug-YYYY-MM-DD-HH:MM:SS.out' in",
|
||||
" Manual page orca(1) line 24 (press h for help or q to quit)'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("g"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"7. g",
|
||||
["BRAILLE LINE: ' Manual page orca(1) line 1 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"SPEECH OUTPUT: 'orca(1) General Commands Manual orca(1)",
|
||||
"",
|
||||
"NAME",
|
||||
" orca - a scriptable screen reader",
|
||||
"",
|
||||
"SYNOPSIS",
|
||||
" orca [option...]",
|
||||
"",
|
||||
"DESCRIPTION",
|
||||
" orca is a screen reader for people with visual impairments, it provides",
|
||||
" alternative access to the desktop by using speech synthesis and",
|
||||
" braille.",
|
||||
"",
|
||||
" orca works with applications and toolkits that support the Assistive",
|
||||
" Technology Service Provider Interface (AT-SPI), which is the primary",
|
||||
" assistive technology infrastructure for Linux and Solaris. Applications",
|
||||
" and toolkits supporting the AT-SPI include the GNOME Gtk+ toolkit, the",
|
||||
" Java platform's Swing toolkit, LibreOffice, Gecko, and WebKitGtk. AT-",
|
||||
" SPI support for the KDE Qt toolkit is being pursued.",
|
||||
"",
|
||||
"OPTIONS",
|
||||
" -s, --setup",
|
||||
" When starting orca, initiate the GUI-based configuration.",
|
||||
" Manual page orca(1) line 1 (press h for help or q to quit)'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("<Shift>g"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"8. Shift+g",
|
||||
["BRAILLE LINE: ' Manual page orca(1) line 240/262 (END) (press h for help or q to quit)'",
|
||||
" VISIBLE: 'or q to quit\)', cursor=14",
|
||||
"SPEECH OUTPUT: ' ~/.local/share/orca/orca-scripts",
|
||||
" Orca user orca scripts directory",
|
||||
"",
|
||||
" ~/.local/share/orca/bookmarks",
|
||||
" Orca user bookmarks directory",
|
||||
"",
|
||||
" ~/.local/share/orca/app-settings",
|
||||
" Orca user application specific settings directory",
|
||||
"",
|
||||
"AUTHOR",
|
||||
" Orca originated as a community effort led by the Sun Microsystems Inc.",
|
||||
" Accessibility Program Office and with contributions from many community",
|
||||
" members.",
|
||||
"",
|
||||
"SEE ALSO",
|
||||
" For more information please visit orca wiki at",
|
||||
" <http://live.gnome.org/Orca> <http://live.gnome.org/Orca>",
|
||||
"",
|
||||
" The orca mailing list <http://mail.gnome.org/mailman/listinfo/orca-",
|
||||
" list> To post a message to all orca list, send a email to orca-",
|
||||
" list@gnome.org",
|
||||
"",
|
||||
"GNOME 20 September 2013 orca(1)",
|
||||
" Manual page orca(1) line 240/262 (END) (press h for help or q to quit)'"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
316
test/keystrokes/gnome-terminal/man_page_flat_review.py
Normal file
316
test/keystrokes/gnome-terminal/man_page_flat_review.py
Normal file
@ -0,0 +1,316 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
sequence = MacroSequence()
|
||||
|
||||
sequence.append(PauseAction(3000))
|
||||
sequence.append(TypeAction("man orca"))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(PauseAction(3000))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_8"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. Review current line",
|
||||
["BRAILLE LINE: ' Manual page orca(1) line 1 (press h for help or q to quit) $l'",
|
||||
" VISIBLE: ' (press h for help or q to quit)', cursor=32",
|
||||
"SPEECH OUTPUT: ' Manual page orca(1) line 1 (press h for help or q to quit)",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"2. Review previous line",
|
||||
["BRAILLE LINE: ' When starting orca, initiate the GUI-based configuration. $l'",
|
||||
" VISIBLE: ' When starting orca', cursor=1",
|
||||
"SPEECH OUTPUT: ' When starting orca, initiate the GUI-based configuration.",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"3. Review previous line",
|
||||
["BRAILLE LINE: ' -s, --setup $l'",
|
||||
" VISIBLE: ' -s, --setup $l', cursor=1",
|
||||
"SPEECH OUTPUT: ' -s, --setup",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"4. Review next line",
|
||||
["BRAILLE LINE: ' When starting orca, initiate the GUI-based configuration. $l'",
|
||||
" VISIBLE: ' When starting orca', cursor=1",
|
||||
"SPEECH OUTPUT: ' When starting orca, initiate the GUI-based configuration.",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyPressAction(0, None, "KP_Insert"))
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"5. Review first line",
|
||||
["BRAILLE LINE: 'File Edit View Search Terminal Help $l'",
|
||||
" VISIBLE: 'File Edit View Search Terminal H', cursor=1",
|
||||
"SPEECH OUTPUT: 'File Edit View Search Terminal Help'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"6. Review next line",
|
||||
["BRAILLE LINE: 'orca(1) General Commands Manual orca(1) $l'",
|
||||
" VISIBLE: 'orca(1) Gene', cursor=1",
|
||||
"SPEECH OUTPUT: 'orca(1) General Commands Manual orca(1)",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"7. Review next line",
|
||||
["BRAILLE LINE: 'vertical scroll bar 3% $l'",
|
||||
" VISIBLE: 'vertical scroll bar 3% $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'vertical scroll bar 3 percent.'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"8. Review next line",
|
||||
["BRAILLE LINE: ' $l'",
|
||||
" VISIBLE: ' $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'blank'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"9. Review next line",
|
||||
["BRAILLE LINE: 'NAME $l'",
|
||||
" VISIBLE: 'NAME $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'NAME",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"10. Review next line",
|
||||
["BRAILLE LINE: ' orca - a scriptable screen reader $l'",
|
||||
" VISIBLE: ' orca - a scriptable scree', cursor=1",
|
||||
"SPEECH OUTPUT: ' orca - a scriptable screen reader",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("<Control>f"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"11. Forward one page",
|
||||
["BRAILLE LINE: ' Manual page orca(1) line 24 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"BRAILLE LINE: ' Manual page orca(1) line 24 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"BRAILLE LINE: ' Manual page orca(1) line 24 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"BRAILLE LINE: ' Manual page orca(1) line 24 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"SPEECH OUTPUT: ' When starting orca, use dirname as an alternate directory for",
|
||||
" the user preferences.",
|
||||
"",
|
||||
" -e, --enable=speech|braille|braille-monitor",
|
||||
" When starting orca, force the enabling of the supplied options.",
|
||||
"",
|
||||
" -d, --disable=speech|braille|braille-monitor",
|
||||
" When starting orca, force the disabling of the supplied options.",
|
||||
"",
|
||||
" -l, --list-apps",
|
||||
" Prints the names of all the currently running applications.",
|
||||
" This is used primarily for debugging purposes to see if orca can",
|
||||
" talk to the accessibility infrastructure. Note that if orca is",
|
||||
" already running, this will not kill the other orca process. It",
|
||||
" will just list the currently running applications, and you will",
|
||||
" see orca listed twice: once for the existing orca and once for",
|
||||
" this instance.",
|
||||
"",
|
||||
" --debug",
|
||||
" Enables debug output for orca and sends all debug output to a",
|
||||
" file with a name of the form 'debug-YYYY-MM-DD-HH:MM:SS.out' in",
|
||||
" Manual page orca(1) line 24 (press h for help or q to quit)'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_8"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"12. Review current line",
|
||||
["KNOWN ISSUE: We currently deliberately exit flat review and return to the bottom of the window",
|
||||
"BRAILLE LINE: ' Manual page orca(1) line 24 (press h for help or q to quit) $l'",
|
||||
" VISIBLE: ' (press h for help or q to quit)', cursor=32",
|
||||
"SPEECH OUTPUT: ' Manual page orca(1) line 24 (press h for help or q to quit)",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"13. Review previous line",
|
||||
["BRAILLE LINE: ' file with a name of the form 'debug-YYYY-MM-DD-HH:MM:SS.out' in $l'",
|
||||
" VISIBLE: ' file with a name o', cursor=1",
|
||||
"SPEECH OUTPUT: ' file with a name of the form 'debug-YYYY-MM-DD-HH:MM:SS.out' in",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"14. Review previous line",
|
||||
["BRAILLE LINE: ' Enables debug output for orca and sends all debug output to a $l'",
|
||||
" VISIBLE: ' Enables debug ou', cursor=1",
|
||||
"SPEECH OUTPUT: ' Enables debug output for orca and sends all debug output to a",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyPressAction(0, None, "KP_Insert"))
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"15. Review first line",
|
||||
["BRAILLE LINE: 'File Edit View Search Terminal Help $l'",
|
||||
" VISIBLE: 'File Edit View Search Terminal H', cursor=1",
|
||||
"SPEECH OUTPUT: 'File Edit View Search Terminal Help'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"16. Review next line",
|
||||
["BRAILLE LINE: ' $l'",
|
||||
" VISIBLE: ' $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'blank'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"17. Review next line",
|
||||
["BRAILLE LINE: 'vertical scroll bar 26% $l'",
|
||||
" VISIBLE: 'vertical scroll bar 26% $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'vertical scroll bar 26 percent.'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"18. Review next line",
|
||||
["BRAILLE LINE: ' -u, --user-prefs-dir=dirname $l'",
|
||||
" VISIBLE: ' -u, --user-prefs-dir=dirn', cursor=1",
|
||||
"SPEECH OUTPUT: ' -u, --user-prefs-dir=dirname",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("<Control>b"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"19. Back one page",
|
||||
["BRAILLE LINE: ' Manual page orca(1) line 1 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"BRAILLE LINE: ' Manual page orca(1) line 1 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"BRAILLE LINE: ' Manual page orca(1) line 1 (press h for help or q to quit)'",
|
||||
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
||||
"SPEECH OUTPUT: 'orca(1) General Commands Manual orca(1)",
|
||||
"",
|
||||
"NAME",
|
||||
" orca - a scriptable screen reader",
|
||||
"",
|
||||
"SYNOPSIS",
|
||||
" orca [option...]",
|
||||
"",
|
||||
"DESCRIPTION",
|
||||
" orca is a screen reader for people with visual impairments, it provides",
|
||||
" alternative access to the desktop by using speech synthesis and",
|
||||
" braille.",
|
||||
"",
|
||||
" orca works with applications and toolkits that support the Assistive",
|
||||
" Technology Service Provider Interface (AT-SPI), which is the primary",
|
||||
" assistive technology infrastructure for Linux and Solaris. Applications",
|
||||
" and toolkits supporting the AT-SPI include the GNOME Gtk+ toolkit, the",
|
||||
" Java platform's Swing toolkit, LibreOffice, Gecko, and WebKitGtk. AT-",
|
||||
" SPI support for the KDE Qt toolkit is being pursued.",
|
||||
"",
|
||||
"OPTIONS",
|
||||
" -s, --setup",
|
||||
" When starting orca, initiate the GUI-based configuration.",
|
||||
" Manual page orca(1) line 1 (press h for help or q to quit)'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_8"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"20. Review current line",
|
||||
["BRAILLE LINE: ' Manual page orca(1) line 1 (press h for help or q to quit) $l'",
|
||||
" VISIBLE: ' (press h for help or q to quit)', cursor=32",
|
||||
"SPEECH OUTPUT: ' Manual page orca(1) line 1 (press h for help or q to quit)",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"21. Review previous line",
|
||||
["BRAILLE LINE: ' When starting orca, initiate the GUI-based configuration. $l'",
|
||||
" VISIBLE: ' When starting orca', cursor=1",
|
||||
"SPEECH OUTPUT: ' When starting orca, initiate the GUI-based configuration.",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"22. Review previous line",
|
||||
["BRAILLE LINE: ' -s, --setup $l'",
|
||||
" VISIBLE: ' -s, --setup $l', cursor=1",
|
||||
"SPEECH OUTPUT: ' -s, --setup",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyPressAction(0, None, "KP_Insert"))
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"23. Review first line",
|
||||
["BRAILLE LINE: 'File Edit View Search Terminal Help $l'",
|
||||
" VISIBLE: 'File Edit View Search Terminal H', cursor=1",
|
||||
"SPEECH OUTPUT: 'File Edit View Search Terminal Help'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"24. Review next line",
|
||||
["BRAILLE LINE: 'orca(1) General Commands Manual orca(1) $l'",
|
||||
" VISIBLE: 'orca(1) Gene', cursor=1",
|
||||
"SPEECH OUTPUT: 'orca(1) General Commands Manual orca(1)",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"25. Review next line",
|
||||
["BRAILLE LINE: 'vertical scroll bar 26% $l'",
|
||||
" VISIBLE: 'vertical scroll bar 26% $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'vertical scroll bar 26 percent.'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"26. Review next line",
|
||||
["BRAILLE LINE: ' $l'",
|
||||
" VISIBLE: ' $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'blank'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"27. Review next line",
|
||||
["BRAILLE LINE: 'NAME $l'",
|
||||
" VISIBLE: 'NAME $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'NAME",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"28. Review next line",
|
||||
["BRAILLE LINE: ' orca - a scriptable screen reader $l'",
|
||||
" VISIBLE: ' orca - a scriptable scree', cursor=1",
|
||||
"SPEECH OUTPUT: ' orca - a scriptable screen reader",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
86
test/keystrokes/gnome-terminal/multiple_tabs.py
Normal file
86
test/keystrokes/gnome-terminal/multiple_tabs.py
Normal file
@ -0,0 +1,86 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
sequence = MacroSequence()
|
||||
|
||||
sequence.append(PauseAction(3000))
|
||||
sequence.append(TypeAction("ftp"))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. Return",
|
||||
["BRAILLE LINE: 'ftp> '",
|
||||
" VISIBLE: 'ftp> ', cursor=6",
|
||||
"SPEECH OUTPUT: 'ftp> '"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"2. Return",
|
||||
["BRAILLE LINE: 'ftp> '",
|
||||
" VISIBLE: 'ftp> ', cursor=6",
|
||||
"SPEECH OUTPUT: 'ftp> '"]))
|
||||
|
||||
sequence.append(KeyComboAction("<Control><Shift>t"))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"3. Return",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: '$ '"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"4. Return",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: '$ '"]))
|
||||
|
||||
sequence.append(KeyComboAction("<Alt>1"))
|
||||
sequence.append(PauseAction(3000))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"5. Return",
|
||||
["BRAILLE LINE: 'ftp> '",
|
||||
" VISIBLE: 'ftp> ', cursor=6",
|
||||
"SPEECH OUTPUT: 'ftp> '"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"6. Return",
|
||||
["BRAILLE LINE: 'ftp> '",
|
||||
" VISIBLE: 'ftp> ', cursor=6",
|
||||
"SPEECH OUTPUT: 'ftp> '"]))
|
||||
|
||||
sequence.append(KeyComboAction("<Alt>2"))
|
||||
sequence.append(PauseAction(3000))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"7. Return",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: '$ '"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"8. Return",
|
||||
["BRAILLE LINE: '$ '",
|
||||
" VISIBLE: '$ ', cursor=3",
|
||||
"SPEECH OUTPUT: '$ '"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
163
test/keystrokes/gnome-terminal/nano.py
Normal file
163
test/keystrokes/gnome-terminal/nano.py
Normal file
@ -0,0 +1,163 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
sequence = MacroSequence()
|
||||
|
||||
sequence.append(PauseAction(3000))
|
||||
sequence.append(TypeAction("nano"))
|
||||
sequence.append(PauseAction(3000))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. Launch Nano",
|
||||
["BRAILLE LINE: ''",
|
||||
" VISIBLE: '', cursor=1",
|
||||
"SPEECH OUTPUT: ' GNU nano [\d\.]+\s+New Buffer\s*",
|
||||
"",
|
||||
"'"]))
|
||||
|
||||
sequence.append(TypeAction("This is a test."))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(TypeAction("So is this."))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(TypeAction("Done."))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"2.Typing text",
|
||||
["KNOWN ISSUE: We should be able to do less braille updating here",
|
||||
"KNOWN ISSUE: We're speaking the initial D due to imperfect heuristics",
|
||||
"BRAILLE LINE: 'D'",
|
||||
" VISIBLE: 'D', cursor=2",
|
||||
"BRAILLE LINE: 'Do'",
|
||||
" VISIBLE: 'Do', cursor=3",
|
||||
"BRAILLE LINE: 'Do'",
|
||||
" VISIBLE: 'Do', cursor=3",
|
||||
"BRAILLE LINE: 'Don'",
|
||||
" VISIBLE: 'Don', cursor=4",
|
||||
"BRAILLE LINE: 'Don'",
|
||||
" VISIBLE: 'Don', cursor=4",
|
||||
"BRAILLE LINE: 'Done'",
|
||||
" VISIBLE: 'Done', cursor=5",
|
||||
"BRAILLE LINE: 'Done'",
|
||||
" VISIBLE: 'Done', cursor=5",
|
||||
"BRAILLE LINE: 'Done.'",
|
||||
" VISIBLE: 'Done.', cursor=6",
|
||||
"BRAILLE LINE: 'Done.'",
|
||||
" VISIBLE: 'Done.', cursor=6",
|
||||
"SPEECH OUTPUT: 'D'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"3. Return",
|
||||
["KNOWN ISSUE: We're not speaking anything here",
|
||||
"BRAILLE LINE: ''",
|
||||
" VISIBLE: '', cursor=1"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Up"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"4. Up",
|
||||
["BRAILLE LINE: 'Done.'",
|
||||
" VISIBLE: 'Done.', cursor=1",
|
||||
"SPEECH OUTPUT: 'Done.'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Up"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"5. Up",
|
||||
["BRAILLE LINE: 'So is this.'",
|
||||
" VISIBLE: 'So is this.', cursor=1",
|
||||
"SPEECH OUTPUT: 'So is this.'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Up"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"6. Up",
|
||||
["KNOWN ISSUE: Something is converting the space to a Tab. The Tab is really there, however.",
|
||||
"BRAILLE LINE: 'This is a test.'",
|
||||
" VISIBLE: 'This is a test.', cursor=1",
|
||||
"SPEECH OUTPUT: 'This is a test.'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Up"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"7. Up",
|
||||
[""]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Down"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"8. Down",
|
||||
["BRAILLE LINE: 'So is this.'",
|
||||
" VISIBLE: 'So is this.', cursor=1",
|
||||
"SPEECH OUTPUT: 'So is this.'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Down"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"9. Down",
|
||||
["BRAILLE LINE: 'Done.'",
|
||||
" VISIBLE: 'Done.', cursor=1",
|
||||
"SPEECH OUTPUT: 'Done.'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Down"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"10. Down",
|
||||
["BRAILLE LINE: ''",
|
||||
" VISIBLE: '', cursor=1",
|
||||
"SPEECH OUTPUT: 'blank' voice=system"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Down"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"11. Down",
|
||||
["BRAILLE LINE: ''",
|
||||
" VISIBLE: '', cursor=1",
|
||||
"SPEECH OUTPUT: 'blank' voice=system"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Down"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"12. Down",
|
||||
[""]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Up"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"13. Up",
|
||||
["BRAILLE LINE: ''",
|
||||
" VISIBLE: '', cursor=1",
|
||||
"SPEECH OUTPUT: 'blank' voice=system"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Up"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"14. Up",
|
||||
["BRAILLE LINE: 'Done.'",
|
||||
" VISIBLE: 'Done.', cursor=1",
|
||||
"SPEECH OUTPUT: 'Done.'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Up"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"15. Up",
|
||||
["BRAILLE LINE: 'So is this.'",
|
||||
" VISIBLE: 'So is this.', cursor=1",
|
||||
"SPEECH OUTPUT: 'So is this.'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Up"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"16. Up",
|
||||
["BRAILLE LINE: 'This is a test.'",
|
||||
" VISIBLE: 'This is a test.', cursor=1",
|
||||
"SPEECH OUTPUT: 'This is a test.'"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
140
test/keystrokes/gnome-terminal/nano_flat_review.py
Normal file
140
test/keystrokes/gnome-terminal/nano_flat_review.py
Normal file
@ -0,0 +1,140 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
sequence = MacroSequence()
|
||||
|
||||
sequence.append(PauseAction(3000))
|
||||
sequence.append(TypeAction("nano"))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(TypeAction("This is a test."))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(TypeAction("So is this."))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(TypeAction("Done."))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_8"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. Review current line",
|
||||
["BRAILLE LINE: ' $l'",
|
||||
" VISIBLE: ' $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'blank'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"2. Review previous line",
|
||||
["BRAILLE LINE: 'Done. $l'",
|
||||
" VISIBLE: 'Done. $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'Done.",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"3. Review previous line",
|
||||
["BRAILLE LINE: 'So is this. $l'",
|
||||
" VISIBLE: 'So is this. $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'So is this.",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"4. Review previous line",
|
||||
["KNOWN ISSUE: Something is converting the space to a Tab. The Tab is really there, however.",
|
||||
"BRAILLE LINE: 'This is a test. $l'",
|
||||
" VISIBLE: 'This is a test. $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'This is a test.",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_7"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"5. Review previous line",
|
||||
["BRAILLE LINE: ' $l'",
|
||||
" VISIBLE: ' $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'blank'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"6. Review next line",
|
||||
["BRAILLE LINE: 'This is a test. $l'",
|
||||
" VISIBLE: 'This is a test. $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'This is a test.",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"7. Review next line",
|
||||
["BRAILLE LINE: 'So is this. $l'",
|
||||
" VISIBLE: 'So is this. $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'So is this.",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"8. Review next line",
|
||||
["BRAILLE LINE: 'Done. $l'",
|
||||
" VISIBLE: 'Done. $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'Done.",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"9. Review next line",
|
||||
["BRAILLE LINE: ' $l'",
|
||||
" VISIBLE: ' $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'blank'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"10. Review next line",
|
||||
["BRAILLE LINE: ' $l'",
|
||||
" VISIBLE: ' $l', cursor=1",
|
||||
"SPEECH OUTPUT: 'blank'"]))
|
||||
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"11. Review next line",
|
||||
["BRAILLE LINE: '^G Get Help ^O Write Out ^W Where Is ^K Cut Text ^J Justify ^C Cur Pos $l'",
|
||||
" VISIBLE: '^G Get Help ^O Write Out ^W Whe', cursor=1",
|
||||
"SPEECH OUTPUT: '^G Get Help ^O Write Out ^W Where Is ^K Cut Text ^J Justify ^C Cur Pos",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("KP_9"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"12. Review next line",
|
||||
["BRAILLE LINE: '^X Exit ^R Read File ^\\ Replace ^U Uncut Text^T To Spell ^_ Go To Line $l'",
|
||||
" VISIBLE: '^X Exit ^R Read File ^\\ Rep', cursor=1",
|
||||
"SPEECH OUTPUT: '^X Exit ^R Read File ^\\ Replace ^U Uncut Text^T To Spell ^_ Go To Line",
|
||||
"'"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
24
test/keystrokes/gnome-terminal/pasting.py
Normal file
24
test/keystrokes/gnome-terminal/pasting.py
Normal file
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
utils.setClipboardText("Hello world")
|
||||
|
||||
sequence = MacroSequence()
|
||||
sequence.append(PauseAction(3000))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("<Control><Shift>v"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. Paste",
|
||||
["BRAILLE LINE: '$ Hello world'",
|
||||
" VISIBLE: '$ Hello world', cursor=14",
|
||||
"BRAILLE LINE: 'Pasted contents from clipboard.'",
|
||||
" VISIBLE: 'Pasted contents from clipboard.', cursor=0",
|
||||
"BRAILLE LINE: '$ Hello world'",
|
||||
" VISIBLE: '$ Hello world', cursor=14",
|
||||
"SPEECH OUTPUT: 'Pasted contents from clipboard.' voice=system"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
115
test/keystrokes/gnome-terminal/reverse_i_search.py
Normal file
115
test/keystrokes/gnome-terminal/reverse_i_search.py
Normal file
@ -0,0 +1,115 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
sequence = MacroSequence()
|
||||
sequence.append(PauseAction(3000))
|
||||
sequence.append(TypeAction("echo hello world"))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(TypeAction("echo hey guys"))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(TypeAction("echo goodbye world"))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(TypeAction("cat foo"))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(PauseAction(3000))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("<Control>r"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. Ctrl+R",
|
||||
["BRAILLE LINE: '(reverse-i-search)`': '",
|
||||
" VISIBLE: '(reverse-i-search)`': ', cursor=23",
|
||||
"SPEECH OUTPUT: '(reverse-i-search)`':'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(TypeAction("c"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"2. Type 'c'",
|
||||
["BRAILLE LINE: '(reverse-i-search)`c': cat foo'",
|
||||
" VISIBLE: '(reverse-i-search)`c': cat foo', cursor=24",
|
||||
"SPEECH OUTPUT: 'c': cat foo'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(TypeAction("a"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"3. Type 'a'",
|
||||
["BRAILLE LINE: '(reverse-i-search)`ca': cat foo'",
|
||||
" VISIBLE: '(reverse-i-search)`ca': cat foo', cursor=25",
|
||||
"BRAILLE LINE: '(reverse-i-search)`ca': cat foo'",
|
||||
" VISIBLE: '(reverse-i-search)`ca': cat foo', cursor=25"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("BackSpace"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"4. BackSpace",
|
||||
["BRAILLE LINE: '(reverse-i-search)`c': cat foo'",
|
||||
" VISIBLE: '(reverse-i-search)`c': cat foo', cursor=24",
|
||||
"BRAILLE LINE: '(reverse-i-search)`c': cat foo'",
|
||||
" VISIBLE: '(reverse-i-search)`c': cat foo', cursor=24",
|
||||
"SPEECH OUTPUT: 'a'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("BackSpace"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"5. BackSpace",
|
||||
["BRAILLE LINE: '(failed reverse-i-search)`': cat foo'",
|
||||
" VISIBLE: '(failed reverse-i-search)`': cat', cursor=30",
|
||||
"BRAILLE LINE: '(failed reverse-i-search)`': cat foo'",
|
||||
" VISIBLE: '(failed reverse-i-search)`': cat', cursor=30",
|
||||
"BRAILLE LINE: '(failed reverse-i-search)`': cat foo'",
|
||||
" VISIBLE: '(failed reverse-i-search)`': cat', cursor=30",
|
||||
"SPEECH OUTPUT: 'reverse-i-search)`c'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(TypeAction("e"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"6. Type 'e'",
|
||||
["BRAILLE LINE: '(reverse-i-search)`e': echo goodbye world'",
|
||||
" VISIBLE: 'verse-i-search)`e': echo goodbye', cursor=32",
|
||||
"SPEECH OUTPUT: 'reverse-i-search)`e': echo goodbye world'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(TypeAction("cho "))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"7. Type 'cho '",
|
||||
["BRAILLE LINE: '(reverse-i-search)`ec': echo goodbye world'",
|
||||
" VISIBLE: 'verse-i-search)`ec': echo goodby', cursor=22",
|
||||
"BRAILLE LINE: '(reverse-i-search)`ec': echo goodbye world'",
|
||||
" VISIBLE: 'verse-i-search)`ec': echo goodby', cursor=22",
|
||||
"BRAILLE LINE: '(reverse-i-search)`ech': echo goodbye world'",
|
||||
" VISIBLE: 'verse-i-search)`ech': echo goodb', cursor=23",
|
||||
"BRAILLE LINE: '(reverse-i-search)`ech': echo goodbye world'",
|
||||
" VISIBLE: 'verse-i-search)`ech': echo goodb', cursor=23",
|
||||
"BRAILLE LINE: '(reverse-i-search)`echo': echo goodbye world'",
|
||||
" VISIBLE: 'verse-i-search)`echo': echo good', cursor=24",
|
||||
"BRAILLE LINE: '(reverse-i-search)`echo': echo goodbye world'",
|
||||
" VISIBLE: 'verse-i-search)`echo': echo good', cursor=24",
|
||||
"BRAILLE LINE: '(reverse-i-search)`echo ': echo goodbye world'",
|
||||
" VISIBLE: 'verse-i-search)`echo ': echo goo', cursor=25",
|
||||
"BRAILLE LINE: '(reverse-i-search)`echo ': echo goodbye world'",
|
||||
" VISIBLE: 'verse-i-search)`echo ': echo goo', cursor=25"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(TypeAction("he"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"8. Type 'he'",
|
||||
["BRAILLE LINE: '(reverse-i-search)`echo h': echo hey guys'",
|
||||
" VISIBLE: 'verse-i-search)`echo h': echo he', cursor=26",
|
||||
"BRAILLE LINE: '(reverse-i-search)`echo he': echo hey guys'",
|
||||
" VISIBLE: 'verse-i-search)`echo he': echo h', cursor=27",
|
||||
"BRAILLE LINE: '(reverse-i-search)`echo he': echo hey guys'",
|
||||
" VISIBLE: 'verse-i-search)`echo he': echo h', cursor=27",
|
||||
"SPEECH OUTPUT: 'h': echo hey guys'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(TypeAction("l"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"9. Type 'l'",
|
||||
["BRAILLE LINE: '(reverse-i-search)`echo hel': echo hello world'",
|
||||
" VISIBLE: 'verse-i-search)`echo hel': echo ', cursor=28",
|
||||
"SPEECH OUTPUT: 'l': echo hello world'"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
26
test/keystrokes/gnome-terminal/tab_completion.py
Normal file
26
test/keystrokes/gnome-terminal/tab_completion.py
Normal file
@ -0,0 +1,26 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
sequence = MacroSequence()
|
||||
sequence.append(PauseAction(3000))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(TypeAction("cd "))
|
||||
|
||||
slash = utils.getKeyCodeForName("slash")
|
||||
sequence.append(KeyPressAction(0, slash, None))
|
||||
sequence.append(KeyReleaseAction(0, slash, None))
|
||||
|
||||
sequence.append(TypeAction("ho"))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Tab"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. Tab to complete 'cd /ho'",
|
||||
["BRAILLE LINE: '$ cd /home/'",
|
||||
" VISIBLE: '$ cd /home/', cursor=12",
|
||||
"SPEECH OUTPUT: 'me/'"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
90
test/keystrokes/gnome-terminal/vim-append.py
Normal file
90
test/keystrokes/gnome-terminal/vim-append.py
Normal file
@ -0,0 +1,90 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
from macaroon.playback import *
|
||||
import utils
|
||||
|
||||
sequence = MacroSequence()
|
||||
|
||||
sequence.append(PauseAction(3000))
|
||||
sequence.append(TypeAction("vim"))
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(PauseAction(3000))
|
||||
|
||||
# KNOWN ISSUE: Sometimes we display the frame and sometimes we don't.
|
||||
# It seems to be a timing issue.
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("a"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"1. A to append text",
|
||||
["BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame '",
|
||||
" VISIBLE: '(frame |)', cursor=1",
|
||||
"SPEECH OUTPUT: '-- INSERT -- 0,1 '"]))
|
||||
|
||||
sequence.append(TypeAction("Hi H"))
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(TypeAction("i"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"2. Finish typing 'Hi Hi'",
|
||||
["BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi Hi'",
|
||||
" VISIBLE: '(frame |)Hi Hi', cursor=(6|12)",
|
||||
"BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi Hi'",
|
||||
" VISIBLE: '(frame |)Hi Hi', cursor=(6|12)"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("BackSpace"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"3. BackSpace",
|
||||
["BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi H'",
|
||||
" VISIBLE: '(frame |)Hi H', cursor=(5|11)",
|
||||
"BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi H'",
|
||||
" VISIBLE: '(frame |)Hi H', cursor=(5|11)",
|
||||
"BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi H'",
|
||||
" VISIBLE: '(frame |)Hi H', cursor=(5|11)",
|
||||
"SPEECH OUTPUT: 'i'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("BackSpace"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"4. BackSpace",
|
||||
["BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi '",
|
||||
" VISIBLE: '(frame |)Hi ', cursor=(4|10)",
|
||||
"BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi '",
|
||||
" VISIBLE: '(frame |)Hi ', cursor=(4|10)",
|
||||
"BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi '",
|
||||
" VISIBLE: '(frame |)Hi ', cursor=(4|10)",
|
||||
"SPEECH OUTPUT: 'H'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("BackSpace"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"5. BackSpace",
|
||||
["KNOWN ISSUE: We're speaking '4', possibly due to a heuristic",
|
||||
"BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi '",
|
||||
" VISIBLE: '(frame |)Hi ', cursor=(3|9)",
|
||||
"BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi '",
|
||||
" VISIBLE: '(frame |)Hi ', cursor=(3|9)",
|
||||
"BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi '",
|
||||
" VISIBLE: '(frame |)Hi ', cursor=(3|9)",
|
||||
"SPEECH OUTPUT: '4'"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(TypeAction("!"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"6. Type '!'",
|
||||
["BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi!'",
|
||||
" VISIBLE: '(frame |)Hi!', cursor=(4|10)",
|
||||
"BRAILLE LINE: 'gnome-terminal-server application \w+@\w+:/tmp/gnome-terminal-wd frame Hi!'",
|
||||
" VISIBLE: '(frame |)Hi!', cursor=(4|10)"]))
|
||||
|
||||
sequence.append(utils.StartRecordingAction())
|
||||
sequence.append(KeyComboAction("Return"))
|
||||
sequence.append(utils.AssertPresentationAction(
|
||||
"7. Return",
|
||||
["BRAILLE LINE: ''",
|
||||
" VISIBLE: '', cursor=1",
|
||||
"BRAILLE LINE: ''",
|
||||
" VISIBLE: '', cursor=1"]))
|
||||
|
||||
sequence.append(utils.AssertionSummaryAction())
|
||||
sequence.start()
|
Reference in New Issue
Block a user