screenreader: Add a test for screenreader.rs.

Test apis for rate, pitch, volume, and enable/disable.
Check out of range gives errors, and values stick after errors.
This commit is contained in:
Jeremy Whiting 2025-05-28 15:42:59 -06:00 committed by Jeremy Whiting
parent 6cf4bb9c04
commit 372df6ff5e
2 changed files with 252 additions and 0 deletions

View file

@ -0,0 +1,150 @@
{
"general": {
"orcaModifierKeys": [
"Insert",
"KP_Insert"
],
"enableSpeech": true,
"onlySpeakDisplayedText": false,
"speechServerFactory": "speechdispatcherfactory",
"speechServerInfo": null,
"voices": {
"default": {
"established": false
},
"uppercase": {
"average-pitch": 7.0
},
"hyperlink": {
"established": false
},
"system": {
"established": false
}
},
"speechVerbosityLevel": 1,
"readFullRowInGUITable": true,
"readFullRowInDocumentTable": true,
"readFullRowInSpreadSheet": false,
"enableSpeechIndentation": false,
"enableEchoByCharacter": false,
"enableEchoByWord": false,
"enableEchoBySentence": false,
"enableKeyEcho": true,
"enableAlphabeticKeys": true,
"enableNumericKeys": true,
"enablePunctuationKeys": true,
"enableSpace": true,
"enableModifierKeys": true,
"enableFunctionKeys": true,
"enableActionKeys": true,
"enableNavigationKeys": false,
"enableDiacriticalKeys": false,
"enablePauseBreaks": true,
"enableTutorialMessages": true,
"enableMnemonicSpeaking": false,
"enablePositionSpeaking": false,
"enableBraille": true,
"disableBrailleEOL": false,
"brailleVerbosityLevel": 1,
"brailleRolenameStyle": 1,
"brailleSelectorIndicator": 192,
"brailleLinkIndicator": 192,
"enableSound": true,
"soundVolume": 0.5,
"playSoundForRole": false,
"playSoundForState": false,
"playSoundForPositionInSet": false,
"playSoundForValue": false,
"verbalizePunctuationStyle": 1,
"presentToolTips": false,
"sayAllStyle": 1,
"keyboardLayout": 1,
"speakBlankLines": true,
"speakNumbersAsDigits": false,
"speakMisspelledIndicator": true,
"textAttributesToSpeak": [],
"textAttributesToBraille": [],
"textAttributesBrailleIndicator": 0,
"profile": [
"Default",
"default"
],
"speakProgressBarUpdates": true,
"brailleProgressBarUpdates": false,
"beepProgressBarUpdates": false,
"progressBarUpdateInterval": 10,
"progressBarVerbosity": 1,
"ignoreStatusBarProgressBars": true,
"enableBrailleWordWrap": false,
"enableContractedBraille": false,
"brailleContractionTable": "",
"enableMouseReview": false,
"speakCellCoordinates": true,
"speakSpreadsheetCoordinates": true,
"alwaysSpeakSelectedSpreadsheetRange": false,
"speakCellSpan": true,
"speakCellHeaders": true,
"skipBlankCells": false,
"largeObjectTextLength": 75,
"structuralNavigationEnabled": true,
"wrappedStructuralNavigation": true,
"chatMessageVerbosity": 0,
"chatSpeakRoomName": false,
"chatAnnounceBuddyTyping": false,
"chatRoomHistories": false,
"enableFlashMessages": true,
"brailleFlashTime": 5000,
"flashIsPersistent": false,
"flashIsDetailed": true,
"messagesAreDetailed": true,
"presentDateFormat": "%x",
"presentTimeFormat": "%X",
"activeProfile": [
"Default",
"default"
],
"startingProfile": [
"Default",
"default"
],
"spellcheckSpellError": true,
"spellcheckSpellSuggestion": true,
"spellcheckPresentContext": true,
"useColorNames": true,
"capitalizationStyle": "none",
"findResultsVerbosity": 2,
"findResultsMinimumLength": 4,
"structNavTriggersFocusMode": false,
"caretNavTriggersFocusMode": false,
"layoutMode": true,
"nativeNavTriggersFocusMode": true,
"rewindAndFastForwardInSayAll": false,
"structNavInSayAll": false,
"speakDescription": true,
"speakContextBlockquote": true,
"speakContextPanel": true,
"speakContextLandmark": true,
"speakContextNonLandmarkForm": true,
"speakContextList": true,
"speakContextTable": true,
"sayAllContextBlockquote": true,
"sayAllContextPanel": true,
"sayAllContextLandmark": true,
"sayAllContextNonLandmarkForm": true,
"sayAllContextList": true,
"sayAllContextTable": true
},
"profiles": {
"default": {
"profile": [
"Default",
"default"
],
"pronunciations": {},
"keybindings": {}
}
},
"pronunciations": {},
"keybindings": {}
}