More work on LibreOffice support.

This commit is contained in:
Storm Dragon committed 2026-10-15 00:50:49 -04:00
1 parent e0c8c6198c
commit 4ac59d4ced
25 files changed
+392 -57

No files matched your search

+5 -4
View File
@@ -24,6 +24,7 @@ import (
"time"
"git.stormux.org/storm/cthulhu/internal/atspi"
"git.stormux.org/storm/cthulhu/internal/input"
"git.stormux.org/storm/cthulhu/internal/presentation"
"git.stormux.org/storm/cthulhu/internal/review"
)
@@ -34,7 +35,7 @@ func TestProcessEventsWhereAmIRepeatsCurrentFocus(t *testing.T) {
interrupt: make(chan struct{}, 1),
}
adapter := &fakeAdapter{events: make(chan atspi.Event, 1)}
reviewRequests := make(chan struct{}, 1)
reviewRequests := make(chan input.Command, 1)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
completed := make(chan error, 1)
@@ -65,7 +66,7 @@ func TestProcessEventsWhereAmIRepeatsCurrentFocus(t *testing.T) {
case <-time.After(time.Second):
t.Fatal("focus was not presented")
}
reviewRequests <- struct{}{}
reviewRequests <- input.WhereAmI
select {
case <-speech.interrupt:
case <-time.After(time.Second):
@@ -93,7 +94,7 @@ func TestProcessEventsWhereAmIRepeatsCurrentFocus(t *testing.T) {
func TestProcessEventsWhereAmIWithoutFocus(t *testing.T) {
speech := &fakeSpeechQueue{spoken: make(chan string, 1)}
adapter := &fakeAdapter{events: make(chan atspi.Event)}
reviewRequests := make(chan struct{}, 1)
reviewRequests := make(chan input.Command, 1)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
completed := make(chan error, 1)
@@ -107,7 +108,7 @@ func TestProcessEventsWhereAmIWithoutFocus(t *testing.T) {
0,
)
}()
reviewRequests <- struct{}{}
reviewRequests <- input.WhereAmI
select {
case text := <-speech.spoken:
if text != "Could not find current location." {