More work on LibreOffice support.
This commit is contained in:
1 parent
e0c8c6198c
commit
4ac59d4ced
25 files changed
+392
-57
No files matched your search
@@ -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")
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user