summaryrefslogtreecommitdiffstats
path: root/tests/image.test
Commit message (Collapse)AuthorAgeFilesLines
* Purge RCS Keywordsdgp2011-06-081-2/+0
|\
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * generic/tkImage.c: Stopped [image create] from generating andgp2003-09-171-1/+13
| | | | | | | | | | | | | | | * tests/image.test: image command name that would overwrite an existing command name. Thanks to Michael Schlenker. [Bug 808039].
* | | Tk tests that create images need to be independent of the interpreter ↵patthoyts2009-01-131-123/+128
| | | | | | | | | | | | environment.
* | | Update to tcltest2aniap2008-08-151-211/+393
| | |
* | | fix [2021443] inconsistant "wrong # args" messages (for Tk)nijtmans2008-07-231-2/+2
|/ /
* | [Tk Bug 1712081]dgp2007-05-141-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unix/Makefile.in: Updates to account for new and deleted files * win/Makefile.in: tkStubImg.c and tkOldTest.c. * win/makefile.bc: * win/makefile.vc: * generic/tkOldTest.c (new): New file used to create testing * generic/tkTest.c: commands for testing various Tk * tests/constraints.tcl: legacy interfaces where a separate * tests/image.test: compilation unit is needed in order to #define suitable macros during compilation. Only the effect of USE_OLD_IMAGE on Tk_CreateImageType() is currently tested, but more similar testing commands can be added to this same file. New constraint defined to detect presence of the image type provided by the new testing code, and a few tests added to exercise it. Having USE_OLD_IMAGE support tested by the default test suite should reduce chance of a recurrence of this bug. * doc/CrtImgType.3: Revised docs to better indicate the legacy * doc/CrtPhImgFmt.3: nature of the interfaces supported by USE_OLD_IMAGE. * generic/tkDecls.h: make genstubs * generic/tkStubInit.c: * generic/tk.decls: Reworked USE_OLD_IMAGE support to use * generic/tk.h: the same support mechanisms both with * generic/tkStubImg.c (deleted):and without a stub-enabled build. In each case, route the legacy calls to Tk_CreateImageType and Tk_CreatePhotoImageFormat through the Tk_CreateOldImageType and Tk_CreateOldPhotoImageFormat routines. Add those routines to the public stub table so they're available to a stub-enabled extension. Remove the definition of Tk_InitImageArgs() and use a macro to convert any calls to it in source code into a comment. * generic/tkImage.c: Removed the MODULE_SCOPE declarations that * generic/tkImgPhoto.c: broke USE_OLD_IMAGE support.
* | Split duplicate test names [Bug 1078648]dkf2004-12-041-2/+2
| |
* | * tests/constraints.tcl:When running the test suite in a processdgp2003-11-181-5/+10
| | | | | | | | | | | | | | | | * tests/image.test: where Tk has been [load]ed, there's no * tests/select.test: guarantee that child processes created by * tests/unixWm.test: [exec [interpreter]] will have Tk in them. * tests/window.test: Made modifications to force a [load] of Tk in those situations.
* | * generic/tkImage.c: Stopped [image create] from generating andgp2003-09-171-1/+13
| | | | | | | | | | * tests/image.test: image command name that would overwrite an existing command name. Thanks to Michael Schlenker. [Bug 808039].
* | Stop deleted images from showing up in the various [image *] operations.dkf2003-05-081-10/+23
| | | | | | | | Can't delete early though as that removes the link with widgets and image names.
* | * tests/all.tcl: Made better use of a commondgp2003-04-011-10/+3
|/ | | | | * tests/constraints.tcl: -loadfile to hold definitions * tests/*.test: common to all test files.
* * generic/tkImage.c (Tk_ImageObjCmd): Added check to make suredkf2003-01-221-4/+13
| | | | | | | | | | | | that you're not creating an image named the same as .'s command, which refixes 220891, even when the name of the command has been changed with 'rename'. The error message is better too. * generic/tkFrame.c (TkToplevelWindowForCommand): Added way of mapping from command names to tkwins-for-toplevels. * tests/image.test (image-1.10,image-1.11): Updated to match new error message and added test for the rename case. * generic/tclInt.decls: Made TkToplevelWindowForCommand exported privately.
* * Converted more files to tcltest and factored out common code.dgp2002-07-131-52/+41
|
* A better fix for #120819 (all it needed was some Tcl_Preserve()s)dkf2000-11-291-19/+16
| | | | | which also requires no documentation changes - the behaviour is now what you would predict from existing docs (as opposed to a crash!)
* Fixed bug #120819 by prohibiting images from starting with a period;dkf2000-11-231-1/+4
| | | | | | | | | I'm still not quite sure what exactly was going wrong in the bug, but I suspect the problem might have actually been due to the deletion of all images while in the midst of creating an image. The restriction is pretty light when it comes to existing code, since it previously caused a core dump due to an image typePtr field being set to random garbage, an indication of over-eager use of free()...
* * doc/image.n: Added documentation for [image inuse] command.ericm2000-05-151-17/+33
| | | | | | | | * tests/image.test: Added tests for [image inuse] command. * generic/tkImage.c (Tk_ImageObjCmd): Added [image inuse] command, which provides a means for programmers to determine if a given image is in use by any widgets. [RFE: 3327].
* * Merged 8.1 branch into the main trunkstanton1999-04-161-8/+25
|
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-04-011-0/+357