summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2002-10-18 00:48:20 (GMT)
committerhobbs <hobbs@noemail.net>2002-10-18 00:48:20 (GMT)
commit8760872a20e81d5eb87775b45189a2239047acd0 (patch)
treeb1fd7865efc0c8f6d28ef7c95440622284dfbbe3 /tests
parentd3843d9529a1e01fbaf4555f6fbade5b39e753d5 (diff)
downloadtk-8760872a20e81d5eb87775b45189a2239047acd0.zip
tk-8760872a20e81d5eb87775b45189a2239047acd0.tar.gz
tk-8760872a20e81d5eb87775b45189a2239047acd0.tar.bz2
* tests/imgPhoto.test:
* generic/tkImgPhoto.c (ImgPhotoConfigureMaster): fix arg handling for missing -format or -data options. [Bug #624974] FossilOrigin-Name: 10196f16b677540d242b6530444e5a8cd1f79460
Diffstat (limited to 'tests')
-rw-r--r--tests/imgPhoto.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test
index 273c3cc..e2b4468 100644
--- a/tests/imgPhoto.test
+++ b/tests/imgPhoto.test
@@ -9,7 +9,7 @@
#
# Author: Paul Mackerras (paulus@cs.anu.edu.au)
#
-# RCS: @(#) $Id: imgPhoto.test,v 1.14 2002/07/14 15:45:23 dgp Exp $
+# RCS: @(#) $Id: imgPhoto.test,v 1.15 2002/10/18 00:48:22 hobbs Exp $
package require tcltest 2.1
namespace import -force tcltest::configure
@@ -78,6 +78,15 @@ test imgPhoto-1.7 {options for photo images} {
test imgPhoto-1.8 {options for photo images} {
list [catch {image create photo -blah blah} err] $err
} {1 {unknown option "-blah"}}
+test imgPhoto-1.9 {options for photo images - error case} {
+ list [catch {image create photo -format} err] $err
+} {1 {value for "-format" missing}}
+test imgPhoto-1.10 {options for photo images - error case} {
+ list [catch {image create photo -data} err] $err
+} {1 {value for "-data" missing}}
+test imgPhoto-1.11 {options for photo images - error case} {
+ list [catch {image create photo p1 -format} err] $err
+} {1 {value for "-format" missing}}
test imgPhoto-2.1 {ImgPhotoCreate procedure} {
eval image delete [image names]