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

+4 -4
View File
@@ -160,7 +160,7 @@ func TestForegroundRetiresQueuedEventsAndClearsLocation(t *testing.T) {
state := atspi.ForegroundState{Client: xorg.Foreground{Known: true, Window: 101}, Epoch: 1}
a.state.Store(&state)
queue := &fakeSpeechQueue{spoken: make(chan string, 16)}
where := make(chan struct{})
where := make(chan input.Command)
ctx, cancel := context.WithCancel(context.Background())
done := make(chan struct{})
go func() {
@@ -180,12 +180,12 @@ func TestForegroundRetiresQueuedEventsAndClearsLocation(t *testing.T) {
// atomic epoch even if the channel notification has not been selected.
event.Source.Name = "Stale"
a.events <- event
where <- struct{}{}
where <- input.WhereAmI
expectActivationSpeech(t, queue.spoken, "Could not find current location.")
event.Foreground = next
event.ForegroundMismatch = true
a.events <- event
where <- struct{}{}
where <- input.WhereAmI
expectActivationSpeech(t, queue.spoken, "Could not find current location.")
if window != 0 {
event.ForegroundMismatch = false
@@ -195,7 +195,7 @@ func TestForegroundRetiresQueuedEventsAndClearsLocation(t *testing.T) {
deactivated := event
deactivated.Type = atspi.WindowDeactivatedEvent
a.events <- deactivated
where <- struct{}{}
where <- input.WhereAmI
expectActivationSpeech(t, queue.spoken, "New, push button")
}
})