From d34ffa326c98f1c385d2068ede115887e23b3e7e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 26 Jul 2014 14:11:03 -0400 Subject: Made the sizing recursive chain idempotent and added a -spaced option to the test program to test spacing. --- redo/zz_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'redo/zz_test.go') 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)") -- cgit v1.2.3