summaryrefslogtreecommitdiffstats
path: root/tests/canvPsImg.tcl
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/canvPsImg.tcl
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/canvPsImg.tcl')
-rw-r--r--tests/canvPsImg.tcl8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/canvPsImg.tcl b/tests/canvPsImg.tcl
index e36cecb..73b854f 100644
--- a/tests/canvPsImg.tcl
+++ b/tests/canvPsImg.tcl
@@ -2,7 +2,7 @@
# for images in canvases. It is part of the Tk visual test suite,
# which is invoked via the "visual" script.
#
-# RCS: @(#) $Id: canvPsImg.tcl,v 1.3 2004/10/19 15:25:08 dkf Exp $
+# RCS: @(#) $Id: canvPsImg.tcl,v 1.4 2005/10/12 09:29:21 dkf Exp $
# Build a test image in a canvas
proc BuildTestImage {} {
@@ -69,9 +69,11 @@ foreach l { monochrome gray color } {
pack .t.$l -in .t.top.r -anchor w
}
-set BitmapImage [image create bitmap -file $tk_library/demos/images/face.xbm \
+set BitmapImage [image create bitmap \
+ -file [file join [file dirname [info script]] face.xbm] \
-background white -foreground black]
-set PhotoImage [image create photo -file $tk_library/demos/images/teapot.ppm]
+set PhotoImage [image create photo \
+ -file [file join [file dirname [info script]] teapot.ppm]]
BuildTestImage