Forms: review r2 fixes
This commit is contained in:
21 files changed
+267
-49
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user