summaryrefslogtreecommitdiffstats
path: root/tests/canvPsImg.tcl
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2005-10-12 09:29:20 (GMT)
committerdkf <dkf@noemail.net>2005-10-12 09:29:20 (GMT)
commitd61315e50abb4ac20e422d2f2799718cdb5acaf4 (patch)
tree707e730ffb01d5f4315270f9550f0e3f18379104 /tests/canvPsImg.tcl
parente2f284b95030a2e423b768fc94051f330e431b9b (diff)
downloadtk-d61315e50abb4ac20e422d2f2799718cdb5acaf4.zip
tk-d61315e50abb4ac20e422d2f2799718cdb5acaf4.tar.gz
tk-d61315e50abb4ac20e422d2f2799718cdb5acaf4.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. FossilOrigin-Name: 296bf6ab16a1d4e0fcf21105ebcc81b14fdb00b4
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