andlabs-ui/zz_test.go

26 lines
389 B
Go
Raw Normal View History

2015-12-11 21:58:21 -06:00
// 11 december 2015
package ui
import "testing"
func TestIt(t *testing.T) {
err := Main(func() {
2015-12-12 12:37:36 -06:00
w := NewWindow("Hello", 320, 240, false)
w.OnClosing(func(w *Window) bool {
Quit()
return true
})
2015-12-12 18:05:41 -06:00
s := NewRadioButtons()
s.Append("Item 1")
s.Append("Item 2")
s.Append("Item 3")
2015-12-12 17:48:43 -06:00
w.SetChild(s)
w.SetMargined(true)
2015-12-12 12:37:36 -06:00
w.Show()
2015-12-11 21:58:21 -06:00
})
if err != nil {
t.Fatal(err)
}
}