summaryrefslogtreecommitdiffstats
path: root/tests/wm.test
diff options
context:
space:
mode:
authormdejong <mdejong>2002-06-13 21:35:09 (GMT)
committermdejong <mdejong>2002-06-13 21:35:09 (GMT)
commit05e959fcd9384aa5fd48d1c117f66461f829e4ee (patch)
tree9b0517b7f131cc0198edcc7f9595d392a851e37b /tests/wm.test
parent71ca9685bbb22a1987831ff214a05b647cbb4426 (diff)
downloadtk-05e959fcd9384aa5fd48d1c117f66461f829e4ee.zip
tk-05e959fcd9384aa5fd48d1c117f66461f829e4ee.tar.gz
tk-05e959fcd9384aa5fd48d1c117f66461f829e4ee.tar.bz2
* tests/unixWm.test:
* tests/wm.test: Move wm minsize and wm maxsize usage tests into the cross platform wm tests.
Diffstat (limited to 'tests/wm.test')
-rw-r--r--tests/wm.test58
1 files changed, 57 insertions, 1 deletions
diff --git a/tests/wm.test b/tests/wm.test
index f6df2ab..c43b1a9 100644
--- a/tests/wm.test
+++ b/tests/wm.test
@@ -7,7 +7,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: wm.test,v 1.9 2002/06/12 19:02:49 mdejong Exp $
+# RCS: @(#) $Id: wm.test,v 1.10 2002/06/13 21:35:09 mdejong Exp $
# This file tests window manager interactions that work across
# platforms. Window manager tests that only work on a specific
@@ -653,6 +653,62 @@ test wm-state-2.17 {state change after map} {
} {normal}
+test wm-maxsize-1.1 {usage} {
+ list [catch {wm maxsize} msg] $msg
+} {1 {wrong # args: should be "wm option window ?arg ...?"}}
+
+test wm-maxsize-1.2 {usage} {
+ list [catch {wm maxsize . a} msg] $msg
+} {1 {wrong # arguments: must be "wm maxsize window ?width height?"}}
+
+test wm-maxsize-1.3 {usage} {
+ list [catch {wm maxsize . a b c} msg] $msg
+} {1 {wrong # arguments: must be "wm maxsize window ?width height?"}}
+
+test wm-maxsize-1.4 {usage} {
+ list [catch {wm maxsize . x 100} msg] $msg
+} {1 {expected integer but got "x"}}
+
+test wm-maxsize-1.5 {usage} {
+ list [catch {wm maxsize . 100 bogus} msg] $msg
+} {1 {expected integer but got "bogus"}}
+
+test wm-maxsize-1.6 {usage} {
+ wm maxsize .t 200 150
+ wm maxsize .t
+} {200 150}
+
+
+test wm-minsize-1.1 {usage} {
+ list [catch {wm minsize} msg] $msg
+} {1 {wrong # args: should be "wm option window ?arg ...?"}}
+
+test wm-minsize-1.2 {usage} {
+ list [catch {wm minsize . a} msg] $msg
+} {1 {wrong # arguments: must be "wm minsize window ?width height?"}}
+
+test wm-minsize-1.3 {usage} {
+ list [catch {wm minsize . a b c} msg] $msg
+} {1 {wrong # arguments: must be "wm minsize window ?width height?"}}
+
+test wm-minsize-1.4 {usage} {
+ wm minsize .t
+} {1 1}
+
+test wm-minsize-1.5 {usage} {
+ list [catch {wm minsize . x 100} msg] $msg
+} {1 {expected integer but got "x"}}
+
+test wm-minsize-1.6 {usage} {
+ list [catch {wm minsize . 100 bogus} msg] $msg
+} {1 {expected integer but got "bogus"}}
+
+test wm-minsize-1.7 {usage} {
+ wm minsize .t 200 150
+ wm minsize .t
+} {200 150}
+
+
# FIXME:
# Test delivery of virtual events to the WM. We could check to see