Testing goodies.

This commit is contained in:
hjozwiak committed 2026-11-24 19:29:50 -05:00
commit a3308aa9fd
43 files changed
+4008 -54

No files matched your search

+4
View File
@@ -98,6 +98,7 @@ func profileFromSettings(settings Settings) writableProfile {
UseColorNames: boolPointer(settings.Reading.UseColorNames),
PresentTooltips: boolPointer(settings.Reading.PresentTooltips),
EnableMouseReview: boolPointer(settings.Reading.EnableMouseReview),
EnableTouchScreen: boolPointer(settings.Reading.EnableTouchScreen),
SpeakMisspelledIndicator: boolPointer(settings.Reading.SpeakMisspelledIndicator),
SpeakContextBlockquote: boolPointer(settings.Reading.SpeakContextBlockquote),
SpeakContextList: boolPointer(settings.Reading.SpeakContextList),
@@ -372,6 +373,9 @@ func applyProfileReading(settings *Settings, profile writableProfile) {
if value := profile.Presentation.Reading.EnableMouseReview; value != nil {
settings.Reading.EnableMouseReview = *value
}
if value := profile.Presentation.Reading.EnableTouchScreen; value != nil {
settings.Reading.EnableTouchScreen = *value
}
if value := profile.Presentation.Reading.SpeakMisspelledIndicator; value != nil {
settings.Reading.SpeakMisspelledIndicator = *value
}
+1
View File
@@ -118,6 +118,7 @@ type writableReading struct {
UseColorNames *bool `toml:"use-color-names,omitempty"`
PresentTooltips *bool `toml:"present-tooltips,omitempty"`
EnableMouseReview *bool `toml:"enable-mouse-review,omitempty"`
EnableTouchScreen *bool `toml:"enable-touch-screen,omitempty"`
SpeakMisspelledIndicator *bool `toml:"speak-misspelled-indicator,omitempty"`
SpeakContextBlockquote *bool `toml:"speak-context-blockquote,omitempty"`
SpeakContextList *bool `toml:"speak-context-list,omitempty"`
+1
View File
@@ -60,6 +60,7 @@ type ReadingSettings struct {
UseColorNames bool
PresentTooltips bool
EnableMouseReview bool
EnableTouchScreen bool
SpeakMisspelledIndicator bool
SpeakContextBlockquote bool
SpeakContextList bool
+1
View File
@@ -33,6 +33,7 @@ func TestStoreSaveAndLoadRoundTrip(t *testing.T) {
settings.Reading.SayAllContextPanel = false
settings.Reading.PresentTooltips = true
settings.Reading.EnableMouseReview = true
settings.Reading.EnableTouchScreen = true
settings.EnableBraille = true
settings.EnableContractedBraille = true
settings.BrailleContractionTable = "en-us-g2.ctb"