WIP feedback 2

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 12:14:31 -04:00
1 parent 7ec9ce0fed
commit aa73d174fa
25 files changed
+278 -21

No files matched your search

+3 -2
View File
@@ -2,6 +2,7 @@ package mujica
import (
"bytes"
"slices"
"testing"
"time"
@@ -19,8 +20,8 @@ func TestSpinnerLabelAndSize(t *testing.T) {
if !ok || r.W != 16 || r.H != 16 {
t.Fatalf("default mark %v %v", r, ok)
}
if tt.HasText("加载中") {
t.Fatal("hidden label painted")
if n := len(slices.DeleteFunc(tt.Texts(), func(s string) bool { return s != "加载中" })); n != 1 {
t.Fatalf("hidden label painted: %d", n)
}
mark, ok = tt.Find("Fetching mail")
if !ok || mark.W != 32 {