summaryrefslogtreecommitdiffstats
path: root/tests/canvPs.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-10-12 09:29:21 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-10-12 09:29:21 (GMT)
commit25545eb7dcc6b464fa5786a03fffb174b31e0fd0 (patch)
tree707e730ffb01d5f4315270f9550f0e3f18379104 /tests/canvPs.test
parent33189491c7086c538aa840c37a4c4f967926c7b2 (diff)
downloadtk-25545eb7dcc6b464fa5786a03fffb174b31e0fd0.zip
tk-25545eb7dcc6b464fa5786a03fffb174b31e0fd0.tar.gz
tk-25545eb7dcc6b464fa5786a03fffb174b31e0fd0.tar.bz2
Arrange the test suite so that it only accesses images in the same directory.
This enables packaging of the test suite as a starkit.
Diffstat (limited to 'tests/canvPs.test')
-rw-r--r--tests/canvPs.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/canvPs.test b/tests/canvPs.test
index f209828..74287d0 100644
--- a/tests/canvPs.test
+++ b/tests/canvPs.test
@@ -6,7 +6,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: canvPs.test,v 1.10 2004/12/08 03:02:53 dgp Exp $
+# RCS: @(#) $Id: canvPs.test,v 1.11 2005/10/12 09:29:21 dkf Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -140,7 +140,7 @@ test canvPs-3.1 {test ps generation with an embedded window} -setup {
-dash {4 4} -stipple question -outline red -fill green
image create photo logo \
- -file [file join $tk_library images pwrdLogo150.gif]
+ -file [file join [file dirname [info script]] pwrdLogo150.gif]
.c create image 200 50 -image logo -anchor nw
entry .c.e -background pink -foreground blue -width 14