Testing goodies.
This commit is contained in:
commit
a3308aa9fd
43 files changed
+4008
-54
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
@@ -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"`
|
||||
|
||||
@@ -60,6 +60,7 @@ type ReadingSettings struct {
|
||||
UseColorNames bool
|
||||
PresentTooltips bool
|
||||
EnableMouseReview bool
|
||||
EnableTouchScreen bool
|
||||
SpeakMisspelledIndicator bool
|
||||
SpeakContextBlockquote bool
|
||||
SpeakContextList bool
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user