summaryrefslogtreecommitdiffstats
path: root/tests/constraints.tcl
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-02-21 11:48:53 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-02-21 11:48:53 (GMT)
commitac156b34dafc325049c475fcccac75a9d35533bc (patch)
treee417680b93c807afaa60dad708ac97bc695bcde4 /tests/constraints.tcl
parente0de5bcca2f848dc868d307892756cc82290696a (diff)
downloadtk-ac156b34dafc325049c475fcccac75a9d35533bc.zip
tk-ac156b34dafc325049c475fcccac75a9d35533bc.tar.gz
tk-ac156b34dafc325049c475fcccac75a9d35533bc.tar.bz2
Use the panedwindow's depth, not the screen's default depth. [Bug #671122]
Diffstat (limited to 'tests/constraints.tcl')
-rw-r--r--tests/constraints.tcl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/constraints.tcl b/tests/constraints.tcl
index 01ed60d..3006cca 100644
--- a/tests/constraints.tcl
+++ b/tests/constraints.tcl
@@ -159,6 +159,7 @@ testConstraint pseudocolor8 [expr {([catch {
toplevel .t -visual {pseudocolor 8} -colormap new
}] == 0) && ([winfo depth .t] == 8)}]
destroy .t
+testConstraint haveTruecolor24 [expr {[lsearch [winfo visualsavailable .] {truecolor 24}] != -1}]
setupbg
set app [dobg {tk appname}]
testConstraint secureserver 0