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)
commitd03bc5c12d63cd1b014ffe6dcb23bb242b65e453 (patch)
treeb1fd7865efc0c8f6d28ef7c95440622284dfbbe3 /tests
parent49e5f064fe4ae37926721fb362f22d4f21849cf5 (diff)
downloadtk-d03bc5c12d63cd1b014ffe6dcb23bb242b65e453.zip
tk-d03bc5c12d63cd1b014ffe6dcb23bb242b65e453.tar.gz
tk-d03bc5c12d63cd1b014ffe6dcb23bb242b65e453.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]