summaryrefslogtreecommitdiffstats
path: root/tests/panedwindow.test
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2003-07-18 10:02:02 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2003-07-18 10:02:02 (GMT)
commit5cfbd1c9b58eae711ec886c8e10e60a15ace343c (patch)
treee0b942f1cfe64b5312fff662adef925000764b44 /tests/panedwindow.test
parent7da332373ced3e939c236fc3986e481e062e9341 (diff)
downloadtk-5cfbd1c9b58eae711ec886c8e10e60a15ace343c.zip
tk-5cfbd1c9b58eae711ec886c8e10e60a15ace343c.tar.gz
tk-5cfbd1c9b58eae711ec886c8e10e60a15ace343c.tar.bz2
Fix for [Bug 702230], and an evil bug it is too!
Diffstat (limited to 'tests/panedwindow.test')
-rw-r--r--tests/panedwindow.test19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/panedwindow.test b/tests/panedwindow.test
index 446830f..e345e2a 100644
--- a/tests/panedwindow.test
+++ b/tests/panedwindow.test
@@ -6,7 +6,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: panedwindow.test,v 1.11 2003/07/17 00:39:53 hobbs Exp $
+# RCS: @(#) $Id: panedwindow.test,v 1.12 2003/07/18 10:02:03 dkf Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -2502,6 +2502,23 @@ test panedwindow-30.1 {display on depths other than the default one} {
-cleanup {destroy .t}
-result {}
}
+test panedwindow-30.2 {display on depths other than the default one} {
+ -constraints {pseudocolor8 haveTruecolor24}
+ -body {
+ toplevel .t -visual {pseudocolor 8}
+ pack [frame .t.f -visual {truecolor 24}]
+ pack [panedwindow .t.f.p]
+ .t.f.p add [frame .t.f.p.f1 -width 5] [frame .t.f.p.f2 -width 5]
+ update
+ .t.f.p proxy place 1 1
+ update
+ .t.f.p proxy forget
+ update
+ # If we got here, we didn't crash and that's good
+ }
+ -cleanup {destroy .t}
+ -result {}
+}
# cleanup
cleanupTests