diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-26 14:11:03 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-26 14:11:03 -0400 |
| commit | d34ffa326c98f1c385d2068ede115887e23b3e7e (patch) | |
| tree | 30de1c8a595a117184d48ce9524b2fff0fc0b13b /redo/zz_test.go | |
| parent | 22989c13da1ece51a815046ee68ff57c36bbeaeb (diff) | |
Made the sizing recursive chain idempotent and added a -spaced option to the test program to test spacing.
Diffstat (limited to 'redo/zz_test.go')
| -rw-r--r-- | redo/zz_test.go | 3 |
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)") |
