summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-10-18 00:48:21 (GMT)
committerhobbs <hobbs>2002-10-18 00:48:21 (GMT)
commite869c37bc865fc041e9b598f7f6994f9a0cb7856 (patch)
treeb1fd7865efc0c8f6d28ef7c95440622284dfbbe3 /tests
parent0465cec552b98e372b86ba0e09b9bfb361f19c8b (diff)
downloadtk-e869c37bc865fc041e9b598f7f6994f9a0cb7856.zip
tk-e869c37bc865fc041e9b598f7f6994f9a0cb7856.tar.gz
tk-e869c37bc865fc041e9b598f7f6994f9a0cb7856.tar.bz2
* tests/imgPhoto.test:
* generic/tkImgPhoto.c (ImgPhotoConfigureMaster): fix arg handling for missing -format or -data options. [Bug #624974]
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]