2024-10-16 17:06:34 -04:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
from macaroon.playback import *
|
|
|
|
import utils
|
|
|
|
|
|
|
|
sequence = MacroSequence()
|
|
|
|
|
|
|
|
sequence.append(PauseAction(3000))
|
2024-10-17 09:20:24 -04:00
|
|
|
sequence.append(TypeAction("man cthulhu"))
|
2024-10-16 17:06:34 -04:00
|
|
|
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",
|
2024-10-17 09:20:24 -04:00
|
|
|
"BRAILLE LINE: ' Manual page cthulhu(1) line 1 (press h for help or q to quit)'",
|
2024-10-16 17:06:34 -04:00
|
|
|
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
2024-10-17 09:20:24 -04:00
|
|
|
"BRAILLE LINE: ' Manual page cthulhu(1) line 1 (press h for help or q to quit)'",
|
2024-10-16 17:06:34 -04:00
|
|
|
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
2024-10-17 09:20:24 -04:00
|
|
|
"SPEECH OUTPUT: 'cthulhu(1) General Commands Manual cthulhu(1)",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
"NAME",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu - a scriptable screen reader",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
"SYNOPSIS",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu [option...]",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
"DESCRIPTION",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu is a screen reader for people with visual impairments, it provides",
|
2024-10-16 17:06:34 -04:00
|
|
|
" alternative access to the desktop by using speech synthesis and",
|
|
|
|
" braille.",
|
|
|
|
"",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu works with applications and toolkits that support the Assistive",
|
2024-10-16 17:06:34 -04:00
|
|
|
" 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",
|
2024-10-17 09:20:24 -04:00
|
|
|
" When starting cthulhu, initiate the GUI-based configuration.",
|
|
|
|
" Manual page cthulhu(1) line 1 (press h for help or q to quit)'"]))
|
2024-10-16 17:06:34 -04:00
|
|
|
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
|
|
sequence.append(KeyComboAction("space"))
|
|
|
|
sequence.append(utils.AssertPresentationAction(
|
|
|
|
"2. Space",
|
2024-10-17 09:20:24 -04:00
|
|
|
["BRAILLE LINE: ' Manual page cthulhu(1) line 24 (press h for help or q to quit)'",
|
2024-10-16 17:06:34 -04:00
|
|
|
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
2024-10-17 09:20:24 -04:00
|
|
|
"SPEECH OUTPUT: ' When starting cthulhu, use dirname as an alternate directory for",
|
2024-10-16 17:06:34 -04:00
|
|
|
" the user preferences.",
|
|
|
|
"",
|
|
|
|
" -e, --enable=speech|braille|braille-monitor",
|
2024-10-17 09:20:24 -04:00
|
|
|
" When starting cthulhu, force the enabling of the supplied options.",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
" -d, --disable=speech|braille|braille-monitor",
|
2024-10-17 09:20:24 -04:00
|
|
|
" When starting cthulhu, force the disabling of the supplied options.",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
" -l, --list-apps",
|
|
|
|
" Prints the names of all the currently running applications.",
|
2024-10-17 09:20:24 -04:00
|
|
|
" This is used primarily for debugging purposes to see if cthulhu can",
|
|
|
|
" talk to the accessibility infrastructure. Note that if cthulhu is",
|
|
|
|
" already running, this will not kill the other cthulhu process. It",
|
2024-10-16 17:06:34 -04:00
|
|
|
" will just list the currently running applications, and you will",
|
2024-10-17 09:20:24 -04:00
|
|
|
" see cthulhu listed twice: once for the existing cthulhu and once for",
|
2024-10-16 17:06:34 -04:00
|
|
|
" this instance.",
|
|
|
|
"",
|
|
|
|
" --debug",
|
2024-10-17 09:20:24 -04:00
|
|
|
" Enables debug output for cthulhu and sends all debug output to a",
|
2024-10-16 17:06:34 -04:00
|
|
|
" file with a name of the form 'debug-YYYY-MM-DD-HH:MM:SS.out' in",
|
2024-10-17 09:20:24 -04:00
|
|
|
" Manual page cthulhu(1) line 24 (press h for help or q to quit)'"]))
|
2024-10-16 17:06:34 -04:00
|
|
|
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
|
|
sequence.append(KeyComboAction("<Control>b"))
|
|
|
|
sequence.append(utils.AssertPresentationAction(
|
|
|
|
"3. Ctrl+b",
|
2024-10-17 09:20:24 -04:00
|
|
|
["BRAILLE LINE: ' Manual page cthulhu(1) line 1 (press h for help or q to quit)'",
|
2024-10-16 17:06:34 -04:00
|
|
|
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
2024-10-17 09:20:24 -04:00
|
|
|
"SPEECH OUTPUT: 'cthulhu(1) General Commands Manual cthulhu(1)",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
"NAME",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu - a scriptable screen reader",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
"SYNOPSIS",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu [option...]",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
"DESCRIPTION",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu is a screen reader for people with visual impairments, it provides",
|
2024-10-16 17:06:34 -04:00
|
|
|
" alternative access to the desktop by using speech synthesis and",
|
|
|
|
" braille.",
|
|
|
|
"",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu works with applications and toolkits that support the Assistive",
|
2024-10-16 17:06:34 -04:00
|
|
|
" 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",
|
2024-10-17 09:20:24 -04:00
|
|
|
" When starting cthulhu, initiate the GUI-based configuration.",
|
|
|
|
" Manual page cthulhu(1) line 1 (press h for help or q to quit)'"]))
|
2024-10-16 17:06:34 -04:00
|
|
|
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
|
|
sequence.append(KeyComboAction("<Control>f"))
|
|
|
|
sequence.append(utils.AssertPresentationAction(
|
|
|
|
"4. Ctrl+f",
|
2024-10-17 09:20:24 -04:00
|
|
|
["BRAILLE LINE: ' Manual page cthulhu(1) line 24 (press h for help or q to quit)'",
|
2024-10-16 17:06:34 -04:00
|
|
|
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
2024-10-17 09:20:24 -04:00
|
|
|
"BRAILLE LINE: ' Manual page cthulhu(1) line 24 (press h for help or q to quit)'",
|
2024-10-16 17:06:34 -04:00
|
|
|
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
2024-10-17 09:20:24 -04:00
|
|
|
"SPEECH OUTPUT: ' When starting cthulhu, use dirname as an alternate directory for",
|
2024-10-16 17:06:34 -04:00
|
|
|
" the user preferences.",
|
|
|
|
"",
|
|
|
|
" -e, --enable=speech|braille|braille-monitor",
|
2024-10-17 09:20:24 -04:00
|
|
|
" When starting cthulhu, force the enabling of the supplied options.",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
" -d, --disable=speech|braille|braille-monitor",
|
2024-10-17 09:20:24 -04:00
|
|
|
" When starting cthulhu, force the disabling of the supplied options.",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
" -l, --list-apps",
|
|
|
|
" Prints the names of all the currently running applications.",
|
2024-10-17 09:20:24 -04:00
|
|
|
" This is used primarily for debugging purposes to see if cthulhu can",
|
|
|
|
" talk to the accessibility infrastructure. Note that if cthulhu is",
|
|
|
|
" already running, this will not kill the other cthulhu process. It",
|
2024-10-16 17:06:34 -04:00
|
|
|
" will just list the currently running applications, and you will",
|
2024-10-17 09:20:24 -04:00
|
|
|
" see cthulhu listed twice: once for the existing cthulhu and once for",
|
2024-10-16 17:06:34 -04:00
|
|
|
" this instance.",
|
|
|
|
"",
|
|
|
|
" --debug",
|
2024-10-17 09:20:24 -04:00
|
|
|
" Enables debug output for cthulhu and sends all debug output to a",
|
2024-10-16 17:06:34 -04:00
|
|
|
" file with a name of the form 'debug-YYYY-MM-DD-HH:MM:SS.out' in",
|
2024-10-17 09:20:24 -04:00
|
|
|
" Manual page cthulhu(1) line 24 (press h for help or q to quit)'"]))
|
2024-10-16 17:06:34 -04:00
|
|
|
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
|
|
sequence.append(KeyComboAction("b"))
|
|
|
|
sequence.append(utils.AssertPresentationAction(
|
|
|
|
"5. b",
|
2024-10-17 09:20:24 -04:00
|
|
|
["BRAILLE LINE: ' Manual page cthulhu(1) line 1 (press h for help or q to quit)'",
|
2024-10-16 17:06:34 -04:00
|
|
|
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
2024-10-17 09:20:24 -04:00
|
|
|
"SPEECH OUTPUT: 'cthulhu(1) General Commands Manual cthulhu(1)",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
"NAME",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu - a scriptable screen reader",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
"SYNOPSIS",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu [option...]",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
"DESCRIPTION",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu is a screen reader for people with visual impairments, it provides",
|
2024-10-16 17:06:34 -04:00
|
|
|
" alternative access to the desktop by using speech synthesis and",
|
|
|
|
" braille.",
|
|
|
|
"",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu works with applications and toolkits that support the Assistive",
|
2024-10-16 17:06:34 -04:00
|
|
|
" 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",
|
2024-10-17 09:20:24 -04:00
|
|
|
" When starting cthulhu, initiate the GUI-based configuration.",
|
|
|
|
" Manual page cthulhu(1) line 1 (press h for help or q to quit)'"]))
|
2024-10-16 17:06:34 -04:00
|
|
|
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
|
|
sequence.append(KeyComboAction("f"))
|
|
|
|
sequence.append(utils.AssertPresentationAction(
|
|
|
|
"6. f",
|
2024-10-17 09:20:24 -04:00
|
|
|
["BRAILLE LINE: ' Manual page cthulhu(1) line 24 (press h for help or q to quit)'",
|
2024-10-16 17:06:34 -04:00
|
|
|
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
2024-10-17 09:20:24 -04:00
|
|
|
"SPEECH OUTPUT: ' When starting cthulhu, use dirname as an alternate directory for",
|
2024-10-16 17:06:34 -04:00
|
|
|
" the user preferences.",
|
|
|
|
"",
|
|
|
|
" -e, --enable=speech|braille|braille-monitor",
|
2024-10-17 09:20:24 -04:00
|
|
|
" When starting cthulhu, force the enabling of the supplied options.",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
" -d, --disable=speech|braille|braille-monitor",
|
2024-10-17 09:20:24 -04:00
|
|
|
" When starting cthulhu, force the disabling of the supplied options.",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
" -l, --list-apps",
|
|
|
|
" Prints the names of all the currently running applications.",
|
2024-10-17 09:20:24 -04:00
|
|
|
" This is used primarily for debugging purposes to see if cthulhu can",
|
|
|
|
" talk to the accessibility infrastructure. Note that if cthulhu is",
|
|
|
|
" already running, this will not kill the other cthulhu process. It",
|
2024-10-16 17:06:34 -04:00
|
|
|
" will just list the currently running applications, and you will",
|
2024-10-17 09:20:24 -04:00
|
|
|
" see cthulhu listed twice: once for the existing cthulhu and once for",
|
2024-10-16 17:06:34 -04:00
|
|
|
" this instance.",
|
|
|
|
"",
|
|
|
|
" --debug",
|
2024-10-17 09:20:24 -04:00
|
|
|
" Enables debug output for cthulhu and sends all debug output to a",
|
2024-10-16 17:06:34 -04:00
|
|
|
" file with a name of the form 'debug-YYYY-MM-DD-HH:MM:SS.out' in",
|
2024-10-17 09:20:24 -04:00
|
|
|
" Manual page cthulhu(1) line 24 (press h for help or q to quit)'"]))
|
2024-10-16 17:06:34 -04:00
|
|
|
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
|
|
sequence.append(KeyComboAction("g"))
|
|
|
|
sequence.append(utils.AssertPresentationAction(
|
|
|
|
"7. g",
|
2024-10-17 09:20:24 -04:00
|
|
|
["BRAILLE LINE: ' Manual page cthulhu(1) line 1 (press h for help or q to quit)'",
|
2024-10-16 17:06:34 -04:00
|
|
|
" VISIBLE: '(press h for help or q to quit)', cursor=32",
|
2024-10-17 09:20:24 -04:00
|
|
|
"SPEECH OUTPUT: 'cthulhu(1) General Commands Manual cthulhu(1)",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
"NAME",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu - a scriptable screen reader",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
"SYNOPSIS",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu [option...]",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
"DESCRIPTION",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu is a screen reader for people with visual impairments, it provides",
|
2024-10-16 17:06:34 -04:00
|
|
|
" alternative access to the desktop by using speech synthesis and",
|
|
|
|
" braille.",
|
|
|
|
"",
|
2024-10-17 09:20:24 -04:00
|
|
|
" cthulhu works with applications and toolkits that support the Assistive",
|
2024-10-16 17:06:34 -04:00
|
|
|
" 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",
|
2024-10-17 09:20:24 -04:00
|
|
|
" When starting cthulhu, initiate the GUI-based configuration.",
|
|
|
|
" Manual page cthulhu(1) line 1 (press h for help or q to quit)'"]))
|
2024-10-16 17:06:34 -04:00
|
|
|
|
|
|
|
sequence.append(utils.StartRecordingAction())
|
|
|
|
sequence.append(KeyComboAction("<Shift>g"))
|
|
|
|
sequence.append(utils.AssertPresentationAction(
|
|
|
|
"8. Shift+g",
|
2024-10-17 09:20:24 -04:00
|
|
|
["BRAILLE LINE: ' Manual page cthulhu(1) line 240/262 (END) (press h for help or q to quit)'",
|
2024-10-16 17:06:34 -04:00
|
|
|
" VISIBLE: 'or q to quit\)', cursor=14",
|
2024-10-17 09:20:24 -04:00
|
|
|
"SPEECH OUTPUT: ' ~/.local/share/cthulhu/cthulhu-scripts",
|
2024-10-17 10:33:20 -04:00
|
|
|
" Cthulhu user cthulhu scripts directory",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
2024-10-17 09:20:24 -04:00
|
|
|
" ~/.local/share/cthulhu/bookmarks",
|
2024-10-17 10:33:20 -04:00
|
|
|
" Cthulhu user bookmarks directory",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
2024-10-17 09:20:24 -04:00
|
|
|
" ~/.local/share/cthulhu/app-settings",
|
2024-10-17 10:33:20 -04:00
|
|
|
" Cthulhu user application specific settings directory",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
|
|
|
"AUTHOR",
|
2024-10-17 10:33:20 -04:00
|
|
|
" Cthulhu originated as a community effort led by the Sun Microsystems Inc.",
|
2024-10-16 17:06:34 -04:00
|
|
|
" Accessibility Program Office and with contributions from many community",
|
|
|
|
" members.",
|
|
|
|
"",
|
|
|
|
"SEE ALSO",
|
2024-10-17 09:20:24 -04:00
|
|
|
" For more information please visit cthulhu wiki at",
|
2024-10-17 10:33:20 -04:00
|
|
|
" <http://live.gnome.org/Cthulhu> <http://live.gnome.org/Cthulhu>",
|
2024-10-16 17:06:34 -04:00
|
|
|
"",
|
2024-10-17 09:20:24 -04:00
|
|
|
" The cthulhu mailing list <http://mail.gnome.org/mailman/listinfo/cthulhu-",
|
|
|
|
" list> To post a message to all cthulhu list, send a email to cthulhu-",
|
2024-10-16 17:06:34 -04:00
|
|
|
" list@gnome.org",
|
|
|
|
"",
|
2024-10-17 09:20:24 -04:00
|
|
|
"GNOME 20 September 2013 cthulhu(1)",
|
|
|
|
" Manual page cthulhu(1) line 240/262 (END) (press h for help or q to quit)'"]))
|
2024-10-16 17:06:34 -04:00
|
|
|
|
|
|
|
sequence.append(utils.AssertionSummaryAction())
|
|
|
|
sequence.start()
|