summaryrefslogtreecommitdiffstats
path: root/tests/canvImg.test
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2003-05-08 09:35:41 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2003-05-08 09:35:41 (GMT)
commitc69380703653737d4e9cc09f25f9468d5a224398 (patch)
tree88a8f7260a315993d69e01f0c55ddf02a2a0692f /tests/canvImg.test
parente3cfc0ae719714af78251c387f1f48c2006926c0 (diff)
downloadtk-c69380703653737d4e9cc09f25f9468d5a224398.zip
tk-c69380703653737d4e9cc09f25f9468d5a224398.tar.gz
tk-c69380703653737d4e9cc09f25f9468d5a224398.tar.bz2
Stop deleted images from showing up in the various [image *] operations.
Can't delete early though as that removes the link with widgets and image names.
Diffstat (limited to 'tests/canvImg.test')
-rw-r--r--tests/canvImg.test9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/canvImg.test b/tests/canvImg.test
index e848bf3..ec6fb6b 100644
--- a/tests/canvImg.test
+++ b/tests/canvImg.test
@@ -7,7 +7,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: canvImg.test,v 1.6 2003/04/01 21:06:18 dgp Exp $
+# RCS: @(#) $Id: canvImg.test,v 1.7 2003/05/08 09:35:41 dkf Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -128,13 +128,14 @@ test canvImg-5.1 {DeleteImage procedure} testImageType {
.c delete all
.c create image 50 100 -image xyzzy -tags i1
update
+ set names [lsort [image names]]
image delete xyzzy
set z {}
- set names [lsort [image names]]
+ set names2 [lsort [image names]]
.c delete i1
update
- list $names $z [lsort [image names]]
-} {{foo foo2 xyzzy} {} {foo foo2}}
+ list $names $names2 $z [lsort [image names]]
+} {{foo foo2 xyzzy} {foo foo2} {} {foo foo2}}
test canvImg-5.2 {DeleteImage procedure (don't delete non-existent image)} {
.c delete all
.c create image 50 100 -tags i1