diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-01-08 21:02:55 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-01-08 21:02:55 (GMT) |
commit | dbbb38af9cefef9e9e1a03c97945ee59063aa782 (patch) | |
tree | deefc089aa3327ebd4daa943b47c0d8f34af6bc7 /tkimg/jpeg/tests | |
parent | 54ae0375ebd9242bdf2eeceacee4c5b2de914bc1 (diff) | |
download | blt-dbbb38af9cefef9e9e1a03c97945ee59063aa782.zip blt-dbbb38af9cefef9e9e1a03c97945ee59063aa782.tar.gz blt-dbbb38af9cefef9e9e1a03c97945ee59063aa782.tar.bz2 |
update tkimg 1.4.7
Diffstat (limited to 'tkimg/jpeg/tests')
-rwxr-xr-x | tkimg/jpeg/tests/all.tcl | 24 | ||||
-rwxr-xr-x | tkimg/jpeg/tests/folder.jpg | bin | 782 -> 0 bytes | |||
-rwxr-xr-x | tkimg/jpeg/tests/jpeg.test | 73 |
3 files changed, 0 insertions, 97 deletions
diff --git a/tkimg/jpeg/tests/all.tcl b/tkimg/jpeg/tests/all.tcl deleted file mode 100755 index 7010d2d..0000000 --- a/tkimg/jpeg/tests/all.tcl +++ /dev/null @@ -1,24 +0,0 @@ -# all.tcl -- -*- tcl -*-
-#
-# Import common functionality, then run the tests in this directory.
-#
-# Copyright (c) 2002 Andreas Kupries <andreas_kupries@users.sourceforge.net>
-# All rights reserved.
-#
-# RCS: @(#) $Id: all.tcl 224 2009-07-27 08:47:46Z nijtmans $
-
-set _pwd [pwd]
-cd [file dirname [file join [pwd] [info script]]]
-set _here [pwd]
-cd $_pwd
-source [file join [file dirname [file dirname $_here]] tests all.tcl]
-unset _pwd _here
-
-set ::tcltest::testSingleFile false
-set ::tcltest::testsDirectory [file dirname [info script]]
-
-# We need to ensure that the testsDirectory is absolute
-::tcltest::normalizePath ::tcltest::testsDirectory
-
-run_tests
-exit
diff --git a/tkimg/jpeg/tests/folder.jpg b/tkimg/jpeg/tests/folder.jpg Binary files differdeleted file mode 100755 index 87a0a38..0000000 --- a/tkimg/jpeg/tests/folder.jpg +++ /dev/null diff --git a/tkimg/jpeg/tests/jpeg.test b/tkimg/jpeg/tests/jpeg.test deleted file mode 100755 index 874ad8d..0000000 --- a/tkimg/jpeg/tests/jpeg.test +++ /dev/null @@ -1,73 +0,0 @@ -# This file is a Tcl script to test out GIF reading and writing.
-# It is organized in the standard fashion for Tcl tests.
-#
-
-puts "img::jpeg [package require img::jpeg]"
-
-set jpegdata \
-{/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRof
-Hh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwh
-MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAAR
-CAAMABADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAA
-AgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK
-FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWG
-h4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl
-5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREA
-AgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYk
-NOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE
-hYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0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KmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk
-5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDpdJ8Nah4g0ay1q9n0Se7vrdLkTT6VI80A
-dQypHILgFAmcKU2nI3feJY7Foda07WrHS9T1C0v0nsZpfOis2gk3xNCuW/eMpz5pJwByOPSv
-FdP+NviXR9KsNNgstJeK2to4UeSKQttVQBnEgGcD0rsPh3481Xx343I1OCzh+xadcGP7KjLn
-dJBnO5m/uDpjvXFRhinW95+67/1sF0f/2Q==}
-
-test jpeg-1.1 {} {
- catch {image delete i}
- image create photo i -file [file join $tcltest::testsDirectory folder.jpg]
- i data -format jpeg
-} $jpegdata
-test jpeg-1.2 {} {
- image delete i
- image create photo i -data $jpegdata
- set data [i data -format jpeg]
-} $jpegdata2
-test jpeg-1.3 {} {
- i blank
- i put $jpegdata
- set data [i data -format jpeg]
-} $jpegdata2
-test jpeg-1.4 {} {
- i blank
- i put $jpegdata -format jpeg
- set data [i data -format jpeg]
-} $jpegdata2
-
-if {[info tclversion] < 8.0} {
- return
-}
-
-test jpeg-2.0 {Binary I/O with JPEG images} {
- i blank
- set f [open [file join $tcltest::testsDirectory folder.jpg] r]
- fconfigure $f -translation binary
- set return [catch {i put [read $f]} msg]
- close $f
- lappend return $msg
-} {0 {}}
|