Avoid repeating Mumble server labels across columns

Collapse identical full-row labels only for Mumble while preserving mixed column data and repeated values from other providers. Add Qt native coverage and document live saved-server listening confirmation.
This commit is contained in:
Storm Dragon committed 2026-11-07 20:12:25 -05:00
1 parent 64440fbb78
commit 3dbd7f2554
8 files changed
+162 -1

No files matched your search

+25
View File
@@ -6,6 +6,31 @@ package atspi
import "testing"
func TestMumbleTableRowText(t *testing.T) {
for _, test := range []struct {
name, process, label, row, want string
columns int
gui bool
}{
{"server label", "mumble", "Server Example", "Server Example, Server Example, Server Example", "Server Example", 3, true},
{"commas and Unicode", "mumble", "Server Example, 界", "Server Example, 界, Server Example, 界, Server Example, 界", "Server Example, 界", 3, true},
{"useful equal values", "mumble", "Server Example", "Server Example, 12, 12", "Server Example, 12, 12", 3, true},
{"mixed labels", "mumble", "Server Example", "Server Example, 12, Server Example", "Server Example, 12, Server Example", 3, true},
{"unrelated provider", "other", "Same", "Same, Same, Same", "Same, Same, Same", 3, true},
{"document table", "mumble", "Same", "Same, Same, Same", "Same, Same, Same", 3, false},
{"single column", "mumble", "Server Example", "Server Example", "Server Example", 1, true},
{"empty cells", "mumble", "", "", "", 3, true},
} {
t.Run(test.name, func(t *testing.T) {
snapshot := Snapshot{ApplicationProcess: test.process, Role: "table cell", Name: test.label,
TableRowText: test.row, TableColumnCount: test.columns, GUITable: test.gui}
if got := mumbleTableRowText(snapshot); got != test.want {
t.Fatalf("row = %q, want %q", got, test.want)
}
})
}
}
func TestMumbleMessageText(t *testing.T) {
for _, test := range []struct{ input, want string }{
{"[12:34:56]", ""},