diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2004-06-17 22:38:55 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2004-06-17 22:38:55 (GMT) |
commit | 68c988ff855b9dbfb491f6986db826f591b6f1d2 (patch) | |
tree | 6b824bed75789a3a95889126d5c52a7d76e579af /tests/winfo.test | |
parent | c5b74b100d335256f82be758f49ce8425fe2ac18 (diff) | |
download | tk-68c988ff855b9dbfb491f6986db826f591b6f1d2.zip tk-68c988ff855b9dbfb491f6986db826f591b6f1d2.tar.gz tk-68c988ff855b9dbfb491f6986db826f591b6f1d2.tar.bz2 |
Steps towards systematization of test constraints in Tk test suite
Diffstat (limited to 'tests/winfo.test')
-rw-r--r-- | tests/winfo.test | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/winfo.test b/tests/winfo.test index f2fb1d3..7332018 100644 --- a/tests/winfo.test +++ b/tests/winfo.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: winfo.test,v 1.11 2004/03/17 18:15:50 das Exp $ +# RCS: @(#) $Id: winfo.test,v 1.12 2004/06/17 22:38:57 dkf Exp $ package require tcltest 2.1 eval tcltest::configure $argv @@ -81,20 +81,16 @@ test winfo-2.7 {"winfo atom" command} { winfo atomname -displayof . 2 } SECONDARY -# Some tests require the "pseudocolor" visual class. -testConstraint pseudocolor [expr { ([winfo depth .] == 8) - && ([winfo visual .] == "pseudocolor")}] - -test winfo-3.1 {"winfo colormapfull" command} {pseudocolor} { +test winfo-3.1 {"winfo colormapfull" command} defaultPseudocolor8 { list [catch {winfo colormapfull} msg] $msg } {1 {wrong # args: should be "winfo colormapfull window"}} -test winfo-3.2 {"winfo colormapfull" command} {pseudocolor} { +test winfo-3.2 {"winfo colormapfull" command} defaultPseudocolor8 { list [catch {winfo colormapfull a b} msg] $msg } {1 {wrong # args: should be "winfo colormapfull window"}} -test winfo-3.3 {"winfo colormapfull" command} {pseudocolor} { +test winfo-3.3 {"winfo colormapfull" command} defaultPseudocolor8 { list [catch {winfo colormapfull foo} msg] $msg } {1 {bad window path name "foo"}} -test winfo-3.4 {"winfo colormapfull" command} {unixOnly pseudocolor} { +test winfo-3.4 {"winfo colormapfull" command} {unixOnly defaultPseudocolor8} { eatColors .t {-colormap new} set result [list [winfo colormapfull .] [winfo colormapfull .t]] .t.c delete 34 |