summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-06-08 10:31:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-06-08 10:31:10 (GMT)
commit25b8569df74d9afc67272322fe89a9ff6dc05a2e (patch)
tree5687762c70d240ff123f02dad924a8ff9be441f3 /tests
parenta51d1909f467d11adf3d095e1fa302f161929cbb (diff)
downloadtk-25b8569df74d9afc67272322fe89a9ff6dc05a2e.zip
tk-25b8569df74d9afc67272322fe89a9ff6dc05a2e.tar.gz
tk-25b8569df74d9afc67272322fe89a9ff6dc05a2e.tar.bz2
When TK_NO_DEPRECATED is defined or when Tk is compiled with Tcl 9 headers, no longer support the oldImageType.
Diffstat (limited to 'tests')
-rw-r--r--tests/image.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/image.test b/tests/image.test
index da65a66..ee3f3d9 100644
--- a/tests/image.test
+++ b/tests/image.test
@@ -308,11 +308,13 @@ test image-5.7 {Tk_ImageCmd procedure, "type" option} -constraints {
} -returnCodes error -result {image "myimage" doesn't exist}
-test image-6.1 {Tk_ImageCmd procedure, "types" option} -body {
+test image-6.1 {Tk_ImageCmd procedure, "types" option} -constraints {
+ testImageType
+} -body {
image types x
} -returnCodes error -result {wrong # args: should be "image types"}
test image-6.2 {Tk_ImageCmd procedure, "types" option} -constraints {
- testImageType
+ testOldImageType
} -body {
lsort [image types]
} -result {bitmap oldtest photo test}