Added test of Group with a Control that fills it.

This commit is contained in:
Pietro Gagliardi 2014-08-15 22:59:45 -04:00
parent 5531866fed
commit 5a1fc98fc3
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,7 @@ var ddata = []dtype{
type testwin struct { type testwin struct {
t Tab t Tab
w Window w Window
group2 Group
group Group group Group
grid Grid grid Grid
nt Tab nt Tab
@ -70,6 +71,8 @@ func (tw *testwin) make(done chan struct{}) {
done <- struct{}{} done <- struct{}{}
return true return true
}) })
tw.group2 = NewGroup("Group", NewButton("Button in Group"))
tw.t.Append("Filled Group", tw.group2)
tw.group = NewGroup("Group", NewVerticalStack(NewCheckbox("Checkbox in Group"))) tw.group = NewGroup("Group", NewVerticalStack(NewCheckbox("Checkbox in Group")))
tw.t.Append("Group", tw.group) tw.t.Append("Group", tw.group)
tw.grid = NewGrid(3, tw.grid = NewGrid(3,