summaryrefslogtreecommitdiff
path: root/redo/zz_test.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-08 16:47:28 -0400
committerPietro Gagliardi <[email protected]>2014-07-08 16:47:28 -0400
commitb4357db4be6688c67e522b637f100ceecc4a9680 (patch)
tree4b631edcb1e1fed7e6287b41b63a6a08d5aa3a45 /redo/zz_test.go
parent60d0953fe9f16726958f709007402ea4c8b89fc6 (diff)
Added the beginning of the Mac OS X code.
Diffstat (limited to 'redo/zz_test.go')
-rw-r--r--redo/zz_test.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/redo/zz_test.go b/redo/zz_test.go
index 122005b..9df45fd 100644
--- a/redo/zz_test.go
+++ b/redo/zz_test.go
@@ -8,7 +8,8 @@ import (
"testing"
)
-func TestPackage(t *testing.T) {
+// because Cocoa hates being run off the main thread, even if it's run exclusively off the main thread
+func init() {
go func() {
w := GetNewWindow(Do, "Hello", 320, 240)
done := make(chan struct{})
@@ -21,6 +22,10 @@ func TestPackage(t *testing.T) {
}()
err := Go()
if err != nil {
- t.Error(err)
+ panic(err)
}
}
+
+func TestDummy(t *testing.T) {
+ // do nothing
+}