summaryrefslogtreecommitdiffstats
path: root/tests/imgPhoto.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2006-03-27 15:40:38 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2006-03-27 15:40:38 (GMT)
commite174d1b2298e72a9d2d91de3bf4fb770468a5d6e (patch)
tree5192e8b3d9a250d0d8a65fcbf1eebde2693218ba /tests/imgPhoto.test
parent48f8897514dfdffe09f50cd9e1bbdacb6434a40d (diff)
downloadtk-e174d1b2298e72a9d2d91de3bf4fb770468a5d6e.zip
tk-e174d1b2298e72a9d2d91de3bf4fb770468a5d6e.tar.gz
tk-e174d1b2298e72a9d2d91de3bf4fb770468a5d6e.tar.bz2
Forgot that the test should return an error
Diffstat (limited to 'tests/imgPhoto.test')
-rw-r--r--tests/imgPhoto.test10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test
index 341e82a..9905448 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.15.2.3 2006/03/27 12:13:56 dkf Exp $
+# RCS: @(#) $Id: imgPhoto.test,v 1.15.2.4 2006/03/27 15:40:38 dkf Exp $
package require tcltest 2.1
namespace import -force tcltest::configure
@@ -653,7 +653,9 @@ hciva9/Ovbv37+BzBgEEADs=
catch {file delete -force $filename}
set result
} 1
-test imgPhoto-14.2 {GIF -index handler buffer sizing} {
+test imgPhoto-14.2 {GIF -index handler buffer sizing} -setup {
+ set i [image create photo]
+} -body {
# Bug 1458234 makes this crash when trying to access buffers of the
# wrong size, caused when the initial frame is not the largest frame.
set data {
@@ -662,10 +664,10 @@ test imgPhoto-14.2 {GIF -index handler buffer sizing} {
LAMAAwAaABoAAAI0jH+gq+gfmFzQzUsr3gBybn1gIm5kaUaoubbuC8fyTNel
Ohv1CSO533u8KrgbUfc5Ci/EAgA7
}
- set i [image create photo]
$i configure -data $data -format {gif -index 2}
+} -cleanup {
image delete $i
-} {}
+} -returnCodes error -result {no image data for this index}
test imgPhoto-15.1 {photo images can fail to allocate memory gracefully} \
{nonPortable} {