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:26:02 -06:00
|
|
|
s := NewSlider(0, 100)
|
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)
|
|
|
|
}
|
|
|
|
}
|