Forms: review r2 fixes

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 13:02:54 -04:00
1 parent 215733e3f4
commit ab14eadcd9
21 files changed
+267 -49

No files matched your search

+13
View File
@@ -5,6 +5,8 @@ import (
"testing"
"github.com/egoist/mygo/ui"
"mujicaui/theme"
)
var transferCast = []TransferItem{
@@ -116,3 +118,14 @@ func TestTransferPartialDescription(t *testing.T) {
t.Fatalf("descriptions %q", got)
}
}
func TestTransferSelectAllHitAreaCompact(t *testing.T) {
target := []string{}
tt := ui.NewTester(func(c *ui.Context) {
Use(c, Settings{Density: theme.Compact})
Transfer(c, &target, transferCast, TransferOptions{})
}, 640, 420)
if r, ok := tt.Find("Select all in Available"); !ok || r.W < 28 || r.H < 28 {
t.Fatalf("select all %v", r)
}
}