diff --git a/test/main.go b/test/main.go index 1984e58..1aa4ac2 100644 --- a/test/main.go +++ b/test/main.go @@ -6,6 +6,13 @@ import ( . ".." ) +func listboxPreferredSizeTest() (*Window, error) { + lb := NewListbox(false, "xxxxx", "y", "zzz") + g := NewGrid(1, lb) + w := NewWindow("Listbox Preferred Size Test", 300, 300) + return w, w.Open(g) +} + func gridWindow() (*Window, error) { w := NewWindow("Grid Test", 400, 400) b00 := NewButton("0,0") @@ -73,6 +80,10 @@ func myMain() { if err != nil { panic(err) } + _, err = listboxPreferredSizeTest() + if err != nil { + panic(err) + } mainloop: for {