diff options
author | Andrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu> | 2012-05-07 21:58:33 -0400 |
---|---|---|
committer | Andrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu> | 2012-05-07 21:58:33 -0400 |
commit | 13d598e5e7f26bc6177ae3f7d52f4f19729ab2f3 (patch) | |
tree | 216dde82bd19b1beb01d9fd0654daa3538e73f92 /nexgb/xgb_test.go | |
parent | daad54a5e114dcff9ef62abbbd18ea52929d01e5 (diff) | |
download | haven-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.go | 18 |
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: |