andlabs-ui/zz_test.go

22 lines
306 B
Go

// 11 december 2015
package ui
import "testing"
func TestIt(t *testing.T) {
err := Main(func() {
w := NewWindow("Hello", 320, 240, false)
w.OnClosing(func(w *Window) bool {
Quit()
return true
})
l := NewLabel("A Label")
w.SetChild(l)
w.Show()
})
if err != nil {
t.Fatal(err)
}
}