Announce popup state for buttons and links

This commit is contained in:
ak47 committed 2026-11-07 22:08:48 -05:00
1 parent 4c95c9f278
commit abb4890e8a
3 files changed
+30

No files matched your search

@@ -86,3 +86,10 @@ func TestDocumentLineSoundPolicy(t *testing.T) {
t.Fatalf("speech-only text = %q", got)
}
}
func TestDocumentLinePopupCue(t *testing.T) {
line := atspi.DocumentLine{Contents: []atspi.DocumentContent{{Snapshot: atspi.Snapshot{Role: "button", HasPopup: true}, Text: "Options"}}}
if got := DocumentLineText(line); got != "Options, button, has popup" {
t.Fatalf("popup line = %q", got)
}
}