summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* * Some tests needed "unix" constraint.dgp2002-07-151-3/+3
|
* * Fixes for [Bug 581627].dgp2002-07-152-9/+12
| | | | | | | | * generic/tkTest.c: Test commands not supported on non-Unix platforms should not be defined there in the first place. * tests/constraints.tcl: Fixed "secureserver" constraint. * tests/unixWm.test: Some tests needed "unix" constraint. * win/tkWinWm.c: Typo in error message.
* * tests/event.test: Fixes to enable testing of only userInteractiondgp2002-07-142-4/+11
| | | | * tests/visual_bb.test: tests.
* * tests/focustTcl.test: Conversion bug: Corrected backwards logic.dgp2002-07-142-5/+5
| | | | * tests/imgPhoto.test: Conversion bug: overwrote unix/README.
* * Completed conversion of Tk test suite to use tcltest.dgp2002-07-1437-897/+779
|
* * Converted more files to tcltest and factored out common code.dgp2002-07-1315-199/+165
|
* * Converted more files to tcltest and factored out common code.dgp2002-07-1354-790/+501
|
* * Converted several files in the test suite for testing bydgp2002-07-138-173/+197
| | | | tcltest 2.1.
* * Converted several files in the Tk test suite for testing bydgp2002-07-1210-331/+324
| | | | tcltest 2.1.
* * Converted several files in the Tk test suite for testing bydgp2002-07-1222-470/+552
| | | | tcltest 2.1.
* tests/visual_vv.test: Removed some dependence on [exec]ed utilitiesdkf2002-07-112-8/+11
| | | | | | generic/tkImgPhoto.c: Allowed photo image buffer allocation to fail more tests/imgPhoto.test: gracefully in some cicumstances. The remaining ones require API changes before they can fail nicely.
* * generic/tkTest.c: Removed unused dependence on TclThread_Init()dgp2002-07-091-39/+2
| | | | * tests/defs.tcl: and [testthread]. [Bug 578165, Tcl Bug 531413]
* Updated font.test to expect new behavior of canvas postscript (patch #546910)a_kovalenko2002-06-261-35/+35
|
* Applied patch #546910 -- international postscript outputa_kovalenko2002-06-251-4/+4
|
* * tests/winWm.test: Verify that both an unmappedmdejong2002-06-242-2/+82
| | | | | | | | | | | | | | | | | | | | and already mapped toplevel are raised and receive the focus when deiconified. * tests/wm.test: Add wm deiconify tests. Check that a toplevel that has never been mapped is not mapped by the deiconify command since it should be done at idle by MapFrame. * win/tkWinWm.c (Tk_WmCmd): Check the WM_NEVER_MAPPED flag while processing the wm deiconify command. The WM_UPDATE_PENDING flag should never be set when WM_NEVER_MAPPED is set, but double check so that the implementation is more explicit and matches the comment just above. Return without invoking TkWmRestackToplevel or TkSetFocusWin on a toplevel that has never been mapped. This fixes a bug where a toplevel is mapped with the wrong size and is then resized by the idle call to MapFrame. [Tk bug 233150]
* * tests/wm.test: Remove invalid minsize test. Add updatemdejong2002-06-241-7/+9
| | | | | | | | | | calls to wm transient tests so that idle handlers get run. This is needed to get the tests to pass under Win32. * unix/tkUnixWm.c (WmWaitMapProc): Move the special transient withdrawn check into the if body to make it easier to set a breakpoint on this test inside a debugger. No functional changes. * win/tkWinWm.c (WmWaitVisibilityOrMapProc): Ditto.
* * doc/wm.n: TIP #95 Windows implementation andhobbs2002-06-222-31/+35
| | | | | | | | * mac/tkMacWm.c (Tk_WmCmd): docs with mac and unix stubs. * unix/tkUnixWm.c (Tk_WmCmd): * win/tkWinWm.c (Tk_WmCmd): * tests/unixWm.test: * tests/winWm.test: more wm attr tests will be needed.
* * doc/text.n: TIP #93 implementation thathobbs2002-06-221-7/+84
| | | | | | | * generic/tkText.c (TextWidgetCmd): enhances the text get and * generic/tkTextIndex.c (TkTextGetIndex): delete methods to accept * tests/text.test: multiple range pairs. This handles the delete case in an atomic, fixed-index fashion.
* * tests/wm.test: Add tests to make sure a withdrawnmdejong2002-06-221-1/+34
| | | | | | | | | | | transient does not get remapped by state changes in the master. * unix/tkUnixWm.c (Tk_WmCmd, WmWaitMapProc): * win/tkWinWm.c (Tk_WmCmd, WmWaitVisibilityOrMapProc): Add a WM_TRANSIENT_WITHDRAWN flag that gets set by the withdraw, deiconify, or state wm subcommands. Check this flag before mapping a transient when processing a MapNotify event. [Tk bug 570764]
* * doc/text.n: TIP #104 implementation which generalizes thehobbs2002-06-211-2/+16
| | | | | | | | | | | | | | | * generic/tkText.c: undo/redo stack to not be tied solely to the * generic/tkText.h: text widget. The APIs are still private. * generic/tkUndo.c: This also adds a stack limiting ability and * generic/tkUndo.h: a -maxundo option to the text widget (in * library/text.tcl: addition to the options from TIP #26) should * mac/tkMacDefault.h: users want to limit the undo/redo stack * tests/text.test: (should not be necessary in most cases). * unix/Makefile.in: [Patch #554763] (callewart) * unix/tkUnixDefault.h: * win/Makefile.in: * win/makefile.vc: * win/tkWinDefault.h:
* * doc/listbox.n:hobbs2002-06-211-2/+19
| | | | | | | | * generic/tkListbox.c (DisplayListbox): * mac/tkMacDefault.h: TIP #94 implementation adding -activestyle * tests/listbox.test: option to the listbox. This adds the ability * unix/tkUnixDefault.h: to have listboxes look native on Windows, and * win/tkWinDefault.h: "nicer" elsewhere using the 'dotbox' style.
* * tests/panedwindow.test:hobbs2002-06-191-1/+22
| | | | | * generic/tkPanedWindow.c: ensure that sash index is lower bounds checked. [Bug #548727]
* Fix tcltest::makeFile so cursor.test can work properly...dkf2002-06-181-1/+2
|
* * generic/tkCmds.c (Tk_TkObjCmd):hobbs2002-06-171-3/+22
| | | | | | | | | | * generic/tkInt.h (struct TkCaret): * mac/tkMacXStubs.c (Tk_SetCaretPos): * unix/tkUnixKey.c (TkpGetString, Tk_SetCaretPos): * win/tkWinX.c (Tk_SetCaretPos): * tests/tk.test: Added 'tk caret' implementation of TIP#96 * doc/SetCaret.3 (new): which adds a TkCaret structure element to * doc/tk.n: TkDisplay for maintaining state.
* Initial implementation of TIP #82: added the -offrelief option todrh2002-06-171-2/+3
| | | | | checkbutton and radiobutton to allow those widgets to have a MS-Office look and feel.
* corrected test numberinghobbs2002-06-141-4/+4
|
* TIP#98 implementation; improved photo image copy and GIF frame accessdkf2002-06-141-6/+43
|
* * tests/winfo.test: Add basic tests for winfo ismapped.mdejong2002-06-141-1/+23
|
* * tests/unixWm.test:mdejong2002-06-132-46/+62
| | | | | * tests/wm.test: Move wm minsize and wm maxsize usage tests into the cross platform wm tests.
* * tests/cursor.test: corrected error after cursor-2.2.dgp2002-06-132-4/+8
| | | | | * tests/defs.tcl: Added enhancements to Tk's fake version of tcltest required by recent cursor.test changes.
* Refixed cursor handling on Windows, and added tests to enforce it.dkf2002-06-131-24/+48
|
* * changes: Add note about new transient behavior.mdejong2002-06-122-5/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/unixWm.test: Check that the WM_TRANSIENT_FOR property for a transient window is being cleared when the master is destroyed. * tests/wm.test: Source defs.tcl instead of using tcltest to match the rest of Tk's test files. Add new tests that ensure that a transient's state mirrors the state of the master. * unix/tkUnixWm.c (WmInfo, TkWmNewWindow, TkWmMapWindow, TkWmDeadWindow, Tk_WmCmd, WmWaitMapProc): Add numTransients member to WmInfo structure. Keep state of master and transient in sync using a callback that tracks MapNotify and UnmapNotify events. When the master is mapped, map the transient. When the master is unmapped or iconified, withdraw the transient. * win/tkWinWm.c (TkWmMapWindow, TkpWmSetState, TkWmDeadWindow, Tk_WmCmd, WmWaitVisibilityOrMapProc): Keep state of master and transient in sync using a callback that tracks MapNotify and UnmapNotify events. Move masterPtr check from TkpWmSetState into TkWmMapWindow to deal with WM_NEVER_MAPPED transients. Cleanup numTransients and the callback in TkWmDeadWindow. Cleanup numTransients and the callback only after deleting a master in wm transient command to avoid deleting the callback when an error is raised. Add support for MapNotify and UnmapNotify events to the master callback.
* * changes: Document [wm transient .t .t] error.mdejong2002-05-271-1/+37
| | | | | | | | | | | | | | * tests/wm.test: Check that setting a window as a transient of itself raises an error. Check that passing a non-toplevel window to the wm transient command uses the enclosing toplevel. * unix/tkUnixWm.c (Tk_WmCmd): Raise an error if the user tries to make a toplevel a transient of itself. * win/tkWinWm.c (Tk_WmCmd): Raise an error if the user tries to make a toplevel a transient of itself. Test for other error before checking for the transient self error.
* * generic/tkInt.decls: Add unix decl for TkpWmSetState.mdejong2002-05-271-1/+145
| | | | | | | | | | | * generic/tkIntPlatDecls.h: Regen. * generic/tkStubInit.c: Regen. * tests/wm.test: Test state changes between iconic, normal, and withdrawn both before and after initial mapping. * unix/tkUnixWm.c (Tk_WmCmd, TkpWmSetState): Move state change code into TkpWmSetState to more closely match the Win32 implementation. No functional changes.
* * tests/embed.test: Added cross platform embed tests.mdejong2002-05-272-3/+58
| | | | | | | | | | | | | | Check that window passed to -use has the -container option set. * tests/wm.test: Remove useless catch call. Deiconify . just in case, stackorder tests will not pass unless it is in the normal state. Add -container flag to embedded stackorder test. * unix/tkUnixEmbed.c (TkpUseWindow): * win/tkWinEmbed.c (TkpUseWindow): Lookup Tk window based on the id passed in as the value for -use. Generate an error if the Tk window did not have the -container option set.
* * mac/tkMacWm.c (Tk_WmCmd):mdejong2002-05-242-8/+44
| | | | | | | | | | | * tests/unixWm.test: Move wm transient checks over to wm.test so they will be run on all systems. * tests/wm.test: Add tests to check for error when an iconwindow is passed to the wm transient command. * unix/tkUnixWm.c (Tk_WmCmd): * win/tkWinWm.c (Tk_WmCmd): Raise an error if one of the windows passed to the wm transient command is an iconwindow for another toplevel.
* * mac/tkMacWm.c (TkWmStackorderToplevelWrapperMap):mdejong2002-05-231-6/+9
| | | | | | | | * tests/wm.test: Add embedded Window test case for the stackorder command. * unix/tkUnixWm.c (TkWmStackorderToplevelWrapperMap): * win/tkWinWm.c (TkWmStackorderToplevelWrapperMap): Ignore embedded windows during wm stackorder command.
* remove eof whitespacehobbs2002-04-121-14/+1
|
* fixed copyright noticehobbs2002-04-101-2/+4
|
* * doc/wm.n:mdejong2002-04-101-3/+3
| | | | | | | | | * mac/tkMacWm.c: * tests/wm.test: * unix/tkUnixWm.c: * win/tkWinWm.c: Update wm stackorder usage message to make it clear that either 1 or 3 arguments are required. [Bug 540013]
* * tests/listbox.test:hobbs2002-02-261-8/+14
| | | | | * generic/tkListbox.c: corrected error handling when setting to an invalid listvar value. [Bug #503613]
* Improvements to filebox tests (including two fixes due to changed behaviour ↵dkf2002-02-251-150/+260
| | | | dating from 2001-12-14)
* TIP #41 implementation, panedwindow [Patch #512503] (melski)hobbs2002-02-221-0/+2380
|
* * library/entry.tcl:mdejong2002-02-151-1/+202
| | | | | | | | | * library/text.tcl: Adjust <Double-1> and <Triple-1> bindings so that no anchor point is set and the insertion cursor is set to the last character in the selection. [Bug 220943] * tests/event.test: Add test cases for double click and drag as well as triple click and drag in the text and entry widgets.
* * tests/event.test (_text_ind_to_x_y, _get_selection): Fixmdejong2002-02-141-10/+22
| | | | | | | | incorrect use of results from bbox invocation so that y center point for a give index is calculated correctly. Add new method to return the selection and use it in test cases. Always lappend to the result list to avoid case where initial result includes a space.
* Final part of TIP#14 support (photo image transparency access); the C APIdkf2002-02-011-2/+143
| | | | stuff has been in there for ages for some reason...
* Correct and test for logic error when cloning menus. Bug 508988uid382262002-01-311-1/+20
|
* * tests/wm.test: Rewrite stackorder tests thatmdejong2002-01-191-11/+22
| | | | | deal with toplevels that have the overrideredirect flag set. [Tk bug 492259]
* * test/winButton.test:hobbs2001-12-291-4/+10
| | | | | | * win/tkWinButton.c: added updated patch #463234 which returns the default sizing behavior (not so native), but enables native L&F with negative sizing (-11 for example).
* * Corrected test thatdgp2001-12-191-3/+3
| | | | failed on Solaris/CDE due to text scrolling. [Bug 413735]