summaryrefslogtreecommitdiffstats
path: root/tkimg/tests/tga.test
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-01-03 21:51:01 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-01-03 21:51:01 (GMT)
commita780057cc1b51dd3a557549c3cf2431f09136c0d (patch)
tree717f78052c55596449b27743171d7e170c4d39a0 /tkimg/tests/tga.test
parent7749430b9352c1eaf5dca7d8a89a6d35f565ef24 (diff)
downloadblt-a780057cc1b51dd3a557549c3cf2431f09136c0d.zip
blt-a780057cc1b51dd3a557549c3cf2431f09136c0d.tar.gz
blt-a780057cc1b51dd3a557549c3cf2431f09136c0d.tar.bz2
upgrade tkimg to 1.4.6
Diffstat (limited to 'tkimg/tests/tga.test')
-rwxr-xr-xtkimg/tests/tga.test55
1 files changed, 0 insertions, 55 deletions
diff --git a/tkimg/tests/tga.test b/tkimg/tests/tga.test
deleted file mode 100755
index 46a0e1f..0000000
--- a/tkimg/tests/tga.test
+++ /dev/null
@@ -1,55 +0,0 @@
-# This file is a Tcl script to test out TGA reading and writing.
-# It is organized in the standard fashion for Tcl tests.
-#
-
-if {[string compare test [info procs test]] == 1} {
- source defs
-}
-
-set tgadata \
-{AAAKAAAAAAAAAAAAUgAMABgg0d/b3wDf29+JAAAAiP///wAAAACIAAD/AAAAAIgA/wAAAAAA
-iP8AAAAAAACI//8AAAAAAIj/AP8AAAAAiAD//wEAAADf298A39vfiQAAAIj///8AAAAAiAAA
-/wAAAACIAP8AAAAAAIj/AAAAAAAAiP//AAAAAACI/wD/AAAAAIgA//8BAAAA39vfAN/b34kA
-AACI////AAAAAIgAAP8AAAAAiAD/AAAAAACI/wAAAAAAAIj//wAAAAAAiP8A/wAAAACIAP//
-AQAAAN/b3wDf29+JAAAAiP///wAAAACIAAD/AAAAAIgA/wAAAAAAiP8AAAAAAACI//8AAAAA
-AIj/AP8AAAAAiAD//wEAAADf298A39vfiQAAAIj///8AAAAAiAAA/wAAAACIAP8AAAAAAIj/
-AAAAAAAAiP//AAAAAACI/wD/AAAAAIgA//8BAAAA39vfAN/b34kAAACI////AAAAAIgAAP8A
-AAAAiAD/AAAAAACI/wAAAAAAAIj//wAAAAAAiP8A/wAAAACIAP//AQAAAN/b3wDf29+JAAAA
-iP///wAAAACIAAD/AAAAAIgA/wAAAAAAiP8AAAAAAACI//8AAAAAAIj/AP8AAAAAiAD//wEA
-AADf298A39vfiQAAAIj///8AAAAAiAAA/wAAAACIAP8AAAAAAIj/AAAAAAAAiP//AAAAAACI
-/wD/AAAAAIgA//8BAAAA39vfAN/b34kAAACI////AAAAAIgAAP8AAAAAiAD/AAAAAACI/wAA
-AAAAAIj//wAAAAAAiP8A/wAAAACIAP//AQAAAN/b3wDf29/PAAAAAN/b39Hf298=}
-
-
-test tga-1.1 {} {
- catch {image delete i}
- image create photo i -file hori.tga
- i data -format tga
-} $tgadata
-test tga-1.2 {} {
- catch {image delete i}
- image create photo i -data $tgadata
- set data [i data -format tga]
-} $tgadata
-test tga-1.3 {} {
- i blank
- i put $tgadata
- set data [i data -format tga]
-} $tgadata
-test tga-1.4 {} {
- i blank
- i put $tgadata -format tga
- set data [i data -format tga]
-} $tgadata
-if {[info tclversion] < 8.0} {
- return
-}
-
-test tga-2.0 {Binary I/O with TGA images} {
- i blank
- set f [open hori.tga r]
- fconfigure $f -translation binary
- set return [catch {i put [read $f]} msg]
- close $f
- lappend return $msg
-} {0 {}}