summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* * win/tkWinDialog.c: Added checks for visibility of parent windowericm2000-04-181-14/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | before creating MessageBox and ChooseColor dialogs; this prevents the application from locking when the parent is withdrawn and the message box is created. In these cases, the window will be created without a parent. * unix/mkLinks: Added WinViewable.3. * tests/msgbox.test: Added tests for patch from [Bug: 4997]. * library/msgbox.tcl: * library/dialog.tcl: Applied patch from [Bug: 4997]; detaches dialog window from parent if parent is not viewable. * library/bgerror.tcl: Removed workaround from [Bug: 4370]; this is superceeded by patches to dialog.tcl. * generic/tkCmds.c: Changed WinfoObjCmd to use Tk_IsViewable function to determine visibility of windows instead of inlining the code. * generic/tkStubInit.c: * generic/tkDecls.h: * generic/tk.decls: Added Tk_IsViewable declaration.
* * tests/grid.test: Added test for [grid propagate . 0] to not toggle.ericm2000-04-171-2/+11
|
* * tests/winDialog.test: tk_chooseDirectory seems to get a noophobbs2000-04-142-39/+40
| | | | | | | from GetOpenFileName in the static build, hanging some tests. The tests were fixed to timeout (noop cause unknown). * tests/scale.test: correct 17.1 WRT bug 4833
* * test/winClipboard.test:hobbs2000-04-121-2/+18
| | | | | | | | | | | | * win/tkWinInt.h: * win/tkWinClipboard.c (UpdateClipboard): * win/tkWinX.c (GenerateXEvent): added updatingClipboard tsd and TkWinUpdatingClipboard accessor function to allow us to flag ourselves when we are the ones updating the clipboard. This corrected inability to create our own clipboard types within a Tk application. [Bug: 2338 4318] * win/tkWinTest.c (TestclipboardCmd): improved TestclipboardCmd with better error handling and obj'ification
* * tests/event.test: Added test for [event generate $widgetericm2000-04-102-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | <Alt-z>] [Bug: 4611]. * tests/choosedir.test: Changed "namespace import ::tcltest" to "namespace import -force ::tcltest". * win/tkWinKey.c: * unix/tkUnixKey.c: * mac/tkMacKeyboard.c: Changed InitKeymapInfo to TkpInitKeymapInfo. [Bug: 4611]. * generic/tkStubInit.c: * generic/tkIntDecls.h: Re-gen'd from tkInt.decls. * generic/tkInt.decls: Added TkpInitKeymapInfo to list of function decls. * generic/tkBind.c (HandleEventGenerate): Added code to initialize keymap info if necessary, and to correctly set modifier bits in XEvent structure create to handle [event generate] calls. Previously, the alt/meta bits were not set correctly, so [event generate $widget <Alt-z>] would always fail. [Bug: 4611]
* * tests/winDialog.test: removed knownBug constraint from 5.16hobbs2000-04-081-2/+2
|
* * library/tkfbox.tcl: Moved an overlooked tkFDialog* function inscriptics_sc_2_0_fixedscriptics_sc_2_0_b5ericm2000-03-292-2/+35
| | | | | | | | | | | | | | ::tk::dialog::file namespace. * tests/unixWm.test: Added tests for memory leak conditions in tkUnixWm.c. * tests/canvas.test: Added test for bad configuration options on empty and non-empty canvas. * generic/tkCanvas.c: Removed bad code in CANV_CONFIGURE block of CanvasWidgetCmd; this was causing non-empty canvases to improperly handle bad configuration options [Bug: 4456].
* * tests/xmfbox.test: Updated tests.ericm2000-03-241-17/+18
| | | | | | | * generic/tkWindow.c: * generic/tkInt.h: Updated Tcl_OptionCmd -> Tcl_OptionObjCmd * generic/tkOption.c: Tcl_Obj'ectified the "option" command.
* * tests/filebox.test:ericm2000-03-242-39/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | * tests/choosedir.test: Updated tests. * library/xmfbox.tcl: Updated to stash data array in ::tk::dialog::file namespace instead of in global namespace. * library/tkfbox.tcl: Extended some functions to support creation of a choosedir dialog, to allow greater code reuse between the two dialogs. Moved tkFDialog* functions into a namespace (::tk::dialog::file). Because these are private Tk functions (and should thus not be used directly by users), this should not impact anybody (the tk_getOpenFile and tk_getSaveFile commands still exist at the global scope). * library/tk.tcl: * library/tclIndex: Updated function names for tkFDialog* functions and choosedir functions. * library/choosedir.tcl: New and improved implementation of tk_chooseDirectory dialog. Based on tk_getOpenFile dialog. * library/listbox.tcl: (tkListboxCancel) Added a check for empty string value for tkPriv(listboxPrev). Without this check, it's possible to get a stack trace under certain conditions. [Bug: 4373].
* * tests/choosedir.test: Marked test 3.1 and 3.2 as bad until theericm2000-03-141-6/+6
| | | | issue with those tests on IRIX can be determined.
* * tests/choosedir.test: Modified test 3.1 (-mustexist works) to beericm2000-03-081-6/+9
| | | | | more careful about cleaning up its potentially troublesome after events.
* * tests/button.test:ericm2000-03-081-5/+5
| | | | * generic/tkButton.c: Added -disabledforeground/-state to labels.
* * tests/entry.test:hobbs2000-03-071-2/+2
| | | | | | | * generic/tkEntry.c (EntrySetValue): malloc the value when validating because validation could cause the pointer to become invalid. Also fixed configure to not trigger focus-based validation. Improved use of Tcl_WrongNumArgs. [Bug: 4320]
* Unset err at the end because some other tests use it.ericm2000-03-071-8/+8
|
* Added more tests.ericm2000-03-031-16/+43
|
* * tests/color.test:hobbs2000-03-023-28/+10
| | | | | | * xlib/xcolors.c (XParseColor FindColor): * win/tkWinColor.c (XAllocColor): Fixed bit fiddling for colors to return "correct" values for color mapping. [Bug: 4282]
* fixed var set problemhobbs2000-03-021-2/+2
|
* * tests/config.test: extra test to check object cleanup whenhobbs2000-03-024-46/+174
| | | | | destroying the widget * tests/entry.test: added test suite for entry validation
* * tests/clrpick.test:ericm2000-03-021-2/+9
| | | | | * library/clrpick.tcl: Added code to make color chooser dialog inherit screen setting from parent (bug #2334)
* * generic/tkImgGIF.c: Applied "spirit of" the patch in 1605 (theericm2000-02-261-2/+2
| | | | | | submitted patch was more complicated than necessary and did not extend to writing GIF's, only reading), to allow reading/writing of GIF files on EBCDIC and other non-ASCII based systems.
* Fixed handling of -mustexist flag for tk_chooseDirectory.ericm2000-02-141-0/+122
|
* * tests/scrollbar.test: fixed check of testmetrics command tohobbs2000-02-101-11/+12
| | | | allow unix tests to run (testmetrics is mac/pc only)
* * tests/canvText.test: test for fix for bug #2525.ericm2000-02-031-1/+16
| | | | | | | * generic/tkFont.c (Tk_ComputeTextLayout): Was erroneously setting the width of newline-only text display chunks to some arbitrary huge number, instead of 0; this was interfering with things like the canvas find enclosed feature. (bug #2525).
* * tests/text.test:ericm2000-02-031-1/+15
| | | | | | | * generic/tkText.c (DumpLine/DumpSegment): Changed DumpSegment to take a TkTextIndex instead of two integer offsets, so that it could use TkTextPrintIndex to format the offsets into an index, which makes it UTF smart (bug #2582).
* * tests/listbox.test: corrected test case for listbox itemconfigurehobbs2000-02-011-3/+3
|
* * tests/text.test:ericm2000-01-211-1/+8
| | | | | * generic/tkText.c: Fixed bug relating to regexp searching for empty lines; previously, the starting line was ignored. (bug #1643).
* * tests/text.test:hobbs2000-01-211-8/+8
| | | | | * generic/tkText.c: fixed missing " in error case and missing 'dump' in subcommand listing [Bug: 4036]
* * tests/grid.test: Added a test for the consecutive ^ and multipleericm2000-01-201-1/+17
| | | | | | | | | | | | widget case (bug #1386). * generic/tkGrid.c: Fixed interpretation of consecutive ^ characters in grid command. Previously, ^ ^ was interpreted as meaning that there must be a 2-column widget above to extend, neglecting the case where there was actually 2 1-column widgets above. Now, ^ ^ is interpreted as a possible width; the gridder will consume as many ^'s as there are columns in the widget, and leave the rest for the extension of other widgets. (bug #1386).
* * tests/text.test: changed test to reflect change of -hiddenhobbs2000-01-131-2/+2
| | | | to -elide in search options.
* * tests/winWm.test:hobbs2000-01-122-5/+41
| | | | | | | | | | | * tests/unixWm.test: * mac/tkMacWm.c: * unix/tkUnixWm.c: fixed possible X error being raised [Bug: 3377] * win/tkWinWm.c: wm deiconify in zoom state [Bug: 2077], fixed possible flashing of unmapped toplevel in deiconify [Bug: 3338] and fixed mapping of transient window [Bug: 572] Also, for all wm's, extended 'wm state' command to allow setting of the state, and added official support of 'zoomed' state on Win.
* * tests/unixWm.test: nonPOrtable -> nonPortablehobbs1999-12-221-2/+2
|
* * scale.test:hobbs1999-12-212-32/+11
| | | | | | * generic/tkScale.c: * generic/tkScale.h: fixed possible core when freeing options (cursor) associated with scale widget [Bug: 3897]
* added tests for tk useinputmethodshobbs1999-12-161-16/+36
|
* Added a couple of extra update calls to prevent some window managers fromwart1999-12-161-1/+3
| | | | forcing users to manually place toplevels.
* * tests/bind.test:hobbs1999-12-1424-122/+430
| | | | | | | | | | | | | | | | | | | | | | | | | | * tests/canvImg.test: * tests/canvPsArc.tcl: * tests/canvPsImg.tcl: (new file) * tests/canvRect.test: * tests/canvText.test: * tests/canvas.test: * tests/defs.tcl: * tests/entry.test: * tests/event.test: * tests/font.test: * tests/frame.test: * tests/imgPhoto.test: * tests/safe.test: * tests/scale.test: * tests/scrollbar.test: * tests/select.test: * tests/text.test: * tests/textDisp.test: * tests/textTag.test: * tests/unixFont.test: * tests/unixWm.test: * tests/visual_bb.test: * tests/winClipboard.test: tests for the dash patch changes
* * tests/imgPPM.test: fixed test 2.2 to use -format ppm (sincehobbs1999-12-031-2/+2
| | | | we know have GIF write capability)
* minor whitespace cleanuphobbs1999-11-302-38/+8
|
* * tests/listbox.test: Added a test to check that the topIndex isericm1999-11-241-1/+20
| | | | | | | update when items are removed from the listvar variable. * generic/tkListbox.c: Added a check the updates the topIndex when items are removed from the listvar variable.
* Additions to update vertical scrollbar info for listboxes when listvar changes.ericm1999-11-241-2/+12
|
* * tests/listbox.test: Added tests for itemcget and itemconfigure.ericm1999-11-191-6/+166
| | | | | | | | * doc/listbox.n: Added documentation for -listvar option and for itemconfigure and itemcget commands. * generic/tkListbox.c: Added support for itemconfigure/itemcget listbox subcommands (addresses rfe #936)
* * tests/listbox.test: Updated tests for new error messages.ericm1999-11-181-5/+6
| | | | * generic/tkListbox.c: Improved error messages for bad -listvar's.
* * tests/listbox.test: Added tests for bad -listvar's.ericm1999-11-181-2/+19
| | | | | * generic/tkListbox.c: Added handlers for bad -listvar's (ie, bad lists)
* * tests/listbox.test: Added tests for ListboxUpdateHScrollbar.ericm1999-11-171-1/+42
| | | | | * generic/tkListbox.c: Changed some old static buffers to base size on TCL_DOUBLLE_SPACE instead of (completely) hardcoding the size.
* * tests/listbox.test: New tests for -listvar functionality, and anericm1999-11-171-2/+157
| | | | | | odd extra case that wasn't covered before. * generic/tkListbox.c: Tests exposed some bugs, now fixed.
* * tests/listbox.test: Fixed tests to comply with new objectifiedericm1999-11-171-24/+12
| | | | | | | | error messages. No -listvar specific tests yet. * win/tkWinDefault.h: * unix/tkUnixDefault.h: * mac/tkMacDefault.h: Added default value for -listvar option.
* Removed bad option "-geometry" to toplevelwart1999-11-131-2/+2
|
* Added "wm geometry" calls in some tests that were waiting for the user towart1999-11-125-6/+12
| | | | | place a window manually. The Tk test suite can now run on twm with no user intervention.
* * tests/imgPhoto.test: added Img patch (Nijtmans) with docs,hobbs1999-10-291-5/+5
| | | | | headers #def'd with USE_OLD_IMAGE. Upgrades image stuff to Tcl_Obj API, adds alpha channel (images are now 32 bpp)
* Run these tests only if "testmetrics" is defined (i.e. tktest isjenn1999-08-181-1/+9
| | | | being used).
* Call cleanupTests after defs has been loadedjenn1999-08-181-5/+5
|