aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgb_test.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-07 21:58:33 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-07 21:58:33 -0400
commit13d598e5e7f26bc6177ae3f7d52f4f19729ab2f3 (patch)
tree216dde82bd19b1beb01d9fd0654daa3538e73f92 /nexgb/xgb_test.go
parentdaad54a5e114dcff9ef62abbbd18ea52929d01e5 (diff)
downloadhaven-13d598e5e7f26bc6177ae3f7d52f4f19729ab2f3.tar.gz
haven-13d598e5e7f26bc6177ae3f7d52f4f19729ab2f3.tar.xz
haven-13d598e5e7f26bc6177ae3f7d52f4f19729ab2f3.zip
more clean up. use log instead of fmt.Print to stderr. bug fix for event blocking (a hack fix for now).
Diffstat (limited to 'nexgb/xgb_test.go')
-rw-r--r--nexgb/xgb_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/nexgb/xgb_test.go b/nexgb/xgb_test.go
index b70ff5e..7eea19b 100644
--- a/nexgb/xgb_test.go
+++ b/nexgb/xgb_test.go
@@ -162,6 +162,24 @@ func TestWindowEvents(t *testing.T) {
t.Fatalf("ConfigureWindow: %s", err)
}
+ err = X.ConfigureWindowChecked(wid,
+ ConfigWindowX|ConfigWindowY|
+ ConfigWindowWidth|ConfigWindowHeight,
+ []uint32{uint32(gx + 2), uint32(gy), uint32(gw), uint32(gh)}).Check()
+ if err != nil {
+ t.Fatalf("ConfigureWindow: %s", err)
+ }
+
+ err = X.ConfigureWindowChecked(wid,
+ ConfigWindowX|ConfigWindowY|
+ ConfigWindowWidth|ConfigWindowHeight,
+ []uint32{uint32(gx + 1), uint32(gy), uint32(gw), uint32(gh)}).Check()
+ if err != nil {
+ t.Fatalf("ConfigureWindow: %s", err)
+ }
+
+ TestProperty(t)
+
evOrErr := waitForEvent(t, 5)
switch event := evOrErr.ev.(type) {
case ConfigureNotifyEvent: