summaryrefslogtreecommitdiff
path: root/redo/zz_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/zz_test.go')
-rw-r--r--redo/zz_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/redo/zz_test.go b/redo/zz_test.go
index e137494..d282cba 100644
--- a/redo/zz_test.go
+++ b/redo/zz_test.go
@@ -11,6 +11,7 @@ import (
)
var closeOnClick = flag.Bool("close", false, "close on click")
+var spaced = flag.Bool("spaced", false, "enable spacing")
// because Cocoa hates being run off the main thread, even if it's run exclusively off the main thread
func init() {
@@ -20,6 +21,8 @@ func init() {
Do(func() {
t := NewTab()
w := NewWindow("Hello", 320, 240, t)
+ // TODO use a method here
+ w.(*window).spaced = *spaced
w.OnClosing(func() bool {
if *closeOnClick {
panic("window closed normally in close on click mode (should not happen)")