Files
cthulhu/internal/atspi/announcement_test.go
hjozwiak 1780afccba Add the announcement of switched workspaces from Niri.
I haven't tested this with Braille support; I don't remember what I did with the cable.
2026-10-31 15:27:40 -04:00

19 lines
443 B
Go

// Copyright (c) 2026 Storm Dragon
// SPDX-License-Identifier: GPL-3.0-or-later
package atspi
import "testing"
func TestAnnouncementEventIsRegistered(t *testing.T) {
if AnnouncementEvent != "object:announcement" {
t.Fatalf("AnnouncementEvent = %q", AnnouncementEvent)
}
for _, eventType := range eventTypes {
if eventType == AnnouncementEvent {
return
}
}
t.Fatal("object:announcement is not in the registered event types")
}