summaryrefslogtreecommitdiff
path: root/zz_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'zz_test.go')
-rw-r--r--zz_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/zz_test.go b/zz_test.go
index f84e5b7..92ce522 100644
--- a/zz_test.go
+++ b/zz_test.go
@@ -6,8 +6,12 @@ import "testing"
func TestIt(t *testing.T) {
err := Main(func() {
- t.Log("we're here")
- Quit()
+ w := NewWindow("Hello", 320, 240, false)
+ w.OnClosing(func(w *Window) bool {
+ Quit()
+ return true
+ })
+ w.Show()
})
if err != nil {
t.Fatal(err)