For speech rate in settings up/down move by 10, left/right move by 1. Easier to get settings right without having to hold doown the arrow keys lol.
This commit is contained in:
1 parent
ea5d26f56d
commit
088f706cb4
13 files changed
+81
-10
No files matched your search
@@ -95,7 +95,7 @@ func TestSettingsMenuCancelSaveAndReopen(t *testing.T) {
|
||||
settings, _, err := config.Load(path, nil)
|
||||
want := 40
|
||||
if action == "save" {
|
||||
want = 41
|
||||
want = 50
|
||||
}
|
||||
if err != nil || settings.Presentation.Speech.Rate != want {
|
||||
t.Fatal("wrong persistence", settings, err)
|
||||
|
||||
@@ -20,7 +20,7 @@ func admit_menu_save(t *testing.T, a *application) {
|
||||
receive_ui(t, a.ui)
|
||||
a.ui.handle(interaction.Key{Name: "tab"})
|
||||
a.ui.handle(interaction.Key{Name: "tab"})
|
||||
a.ui.handle(interaction.Key{Name: "up"}) // Rate 24 -> 25.
|
||||
a.ui.handle(interaction.Key{Name: "right"}) // Rate 24 -> 25.
|
||||
a.ui.action("save", a.ui.session)
|
||||
if !a.saver.busy || a.ui.session != nil {
|
||||
t.Fatal("menu save was not admitted")
|
||||
|
||||
Reference in new issue
Block a user