summaryrefslogtreecommitdiffstats
path: root/tests/wm.test
Commit message (Collapse)AuthorAgeFilesLines
* Purge RCS Keywords.dgp2011-06-081-2/+0
|\
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |
| * Fix test for the ewmh attributes additionpatthoyts2010-01-231-2/+2
| |
| * * tests/wm.test: -transparentcolor added to windows wm attributes testspatthoyts2007-09-041-4/+4
| |
| * * macosx/tkMacOSXEmbed.c:das2006-04-221-2/+5
| | | | | | | | | | | | * macosx/tkMacOSXWm.c: * tests/constraints.tcl: * tests/wm.test: sync with 2006-04-18 commit to HEAD. (darley)
| * 2005-11-16 Don Porter <dgp@users.sourceforge.net>dgp2005-12-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | *** 8.4.12 TAGGED FOR RELEASE *** * changes: Update changes for 8.4.12 release * mac/tkMacWm.c: Restored consistent error checking and * macosx/tkMacOSXWm.c: messages among different platform's * tests/wm.test: [wm grid] commands. [Bug 1323972]. * win/tkWinWm.c:
| * * tests/winfo.test: Wait until child window is visiblepatthoyts2005-10-101-3/+3
| | | | | | | | * tests/wm.test: Modified test to match actual error output.
| * unix/tkUnixWm.c: Sync with CVS HEAD (r1.47):jenglish2005-01-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #959973 "wm title bug" (support Unicode titles) Fixes: #742882 "Potential division by zero in gridded wm geometry" Use Tcl_GetTime instead of TclpGetTime [#874745] Use Tcl_Panic() instead of "panic" [#865264] Fixes: #632816 "cannot remove transient" Fixes: #568861 "Fix for wm minsize and maxsize commands" tests/unixWm.test, tests/wm.test: Updated test suite for #632816 (unixWm-37.3, unixWm-37.4, wm-grid-1.11, wm-grid-1.12) and #742882 (unixWm-20.9, unixWm-20.11).
| * * tests/wm.test: Add Win32 test cases for attributesmdejong2004-10-291-2/+17
| | | | | | | | | | | | subcommand. * win/tkWinWm.c (WmAttributesCmd): Fixup broken option processing logic for attributes subcommand.
| * Backport of 8.5 wm iconphoto that added support for Tk photohobbs2004-10-051-2/+19
| | | | | | | | | | | | | | | | * generic/tkInt.h (TkDisplay): images as titlebar icons. TIP #159 * win/tkWinWm.c (WmIconphotoCmd): wm iconphoto ?-default? image1 ... * macosx/tkMacOSXWm.c (WmIconphotoCmd): Implemented for Win/Unix, * unix/tkUnixWm.c (WmIconphotoCmd): stubbed out for OS X. * tests/wm.test, tests/unixWm.test, tests/winWm.test: [Bug 815751]
| * missed wm attr testhobbs2004-09-191-2/+2
| |
* | TIP #359: Extended window manager hints support for X11.patthoyts2010-01-201-2/+2
| |
* | [Bug 1163496]: Allow windows to be set to be transients for withdrawn mastersdkf2010-01-061-1/+18
| | | | | | | | correctly.
* | [Bug 2239034] Only frame widgets are acceptable for [wm manage]patthoyts2008-11-151-15/+103
| |
* | Backported fixes for handling unmapped parent toplevels. [Bug 2009788, 2028703]patthoyts2008-08-011-1/+38
| |
* | Rewrote so that tests clean up after themselves, not after the preceding test.dkf2008-03-201-885/+945
| |
* | * generic/tkFocus.c, generic/tkFrame.c, generic/tkInt.h:hobbs2007-10-151-2/+48
| | | | | | | | | | | | | | | | * macosx/tkMacOSXButton.c, macosx/tkMacOSXMenubutton.c: * macosx/tkMacOSXWm.c, unix/tkUnixWm.c, win/tkWinWm.c: * doc/wm.n, tests/wm.test: TIP #125 implementation [Bug 998125] Adds [wm manage|forget] for dockable frames. Finished X11 and Windows code, needs OS X completion.
* | * tests/wm.test: Update wm attributes outputmdejong2006-12-281-4/+4
| | | | | | | | | | so that tests pass after addition of -transparentcolor for Win32.
* | fix tests for TkAquavincentdarley2006-04-181-2/+5
| |
* | (wm-attributes-1.2.4): correct expected resulthobbs2006-04-051-2/+6
| |
* | * doc/wm.n: Add documentation for -fullscreen attribute.mdejong2005-02-171-4/+299
| | | | | | | | | | | | | | | | | | | | | | * tests/winWm.test: Add -fullscreen to wm attribute usage message. * tests/wm.test: Add -fullscreen to wm attribute usage message. Add -fullscreen attribute test cases for Windows. * win/tkWinWm.c (WmInfo, UpdateWrapper, TkpWmSetFullScreen, WmAttributesCmd, UpdateGeometryInfo): Implement TIP 223 [wm attributes -fullscreen].
* | Modified for the latest embedded/container window implementation for Windows ↵chengyemao2005-02-151-2/+30
| | | | | | | | platform
* | Use more tcltest 2 features so test contents can be less cluttered...dkf2005-02-091-224/+267
| |
* | Tidy up coding style (better grouping of related tests)dkf2005-02-091-185/+39
| |
* | * tests/wm.test: Add Win32 test cases for attributesmdejong2004-10-291-2/+17
| | | | | | | | | | | | subcommand. * win/tkWinWm.c (WmAttributesCmd): Fixup broken option processing logic for attributes subcommand.
* | * doc/wm.n (iconphoto): added support for Tk photohobbs2004-10-051-2/+19
| | | | | | | | | | | | | | | | * generic/tkInt.h (TkDisplay): images as titlebar icons. TIP #159 * win/tkWinWm.c (WmIconphotoCmd): wm iconphoto ?-default? image1 ... * macosx/tkMacOSXWm.c (WmIconphotoCmd): Implemented for Win/Unix, * unix/tkUnixWm.c (WmIconphotoCmd): stubbed out for OS X. * tests/wm.test, tests/unixWm.test, tests/winWm.test: [Bug 815751]
* | missed wm attr testhobbs2004-09-191-2/+2
| |
* | Use standard constraint namesdkf2004-06-241-6/+6
| |
* | Fix for #742882 "Potential division by zero in gridded wm geometry"jenglish2004-06-161-3/+3
| |
* | First step towards improving test style. Also start using Tcl 8.5 features.dkf2004-05-231-4/+1
| |
* | Removed support for Mac OS Classic platform [Patch 918139]das2004-03-171-3/+3
| |
* | * tests/all.tcl: Made better use of a commondgp2003-04-011-6/+3
| | | | | | | | | | * tests/constraints.tcl: -loadfile to hold definitions * tests/*.test: common to all test files.
* | * doc/wm.n (minimize, maximize): Remove claimmdejong2003-03-121-4/+139
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that the resizable command keeps scripts from changing the size of windows since it is not true. The resizable command only applies to user sizing via user interaction. * tests/unixWm.test: Replace broken tests with the nonPortable constraint with new tests for maxsize and minsize options. These tests verify that setting the minsize and maxsize will resize the window if needed, and that the wm hints will be updated with the new sizes. * tests/wm.test: Add an exhaustive set of tests for the wm maxsize and wm minsize commands. These tests verify that setting the minsize and maxsize will resize the window if needed. These tests have only been run under Win98 and Window Maker under Linux, so further tweaking may be needed for other systems. * unix/tkUnixWm.c (UpdateGeometryInfo, UpdateSizeHints): Fixup comments and initialization for the minWidth, minHeight, maxWidth, maxHeight, width, and height members of the WmInfo struct. Check to ensure that a new toplevel window size is not larger than the maxsize or smaller than the minsize when updating the geometry at idle time. Pass new width and height values to the UpdateSizeHints method so that it can properly set the window min and max sizes for a window that cannot be resized by the user. This fixes a bug where the window resizes back to the original size when the user clicks on the window border. * win/tkWinWm.c (UpdateGeometryInfo): Fixup comments and initialization for the minWidth, minHeight, maxWidth, maxHeight, width, and height members of the WmInfo struct. Check to ensure that a new toplevel window size is not larger than the maxsize or smaller than the minsize when updating the geometry at idle time. [Patch 568861]
* Moved 'deletionEpoch' field from TkDisplay to TkMainInfo.jenglish2003-01-281-1/+9
| | | | | Reworked windowObj type. Fixes Tk Bug #671330 "segfault when e.g. deiconifying destroyed window"
* * tests/wm.test: Add wm-transient-6.3 tomdejong2002-12-011-1/+16
| | | | | | | | | | | check that a transient remains withdrawn when it is first withdrawn and then turned into a transient. * unix/tkUnixWm.c: * win/tkWinWm.c: Replace WM_TRANSIENT_WITHDRAWN with WM_WITHDRAWN and set this flag whenever a window is explicitly withdrawn. This fixes the test case added above. [Bug 644356]
* * tests/wm.test:hobbs2002-09-021-1/+20
| | | | | * unix/tkUnixWm.c: remove possible 2-second delay in 'raise'. [Patch #601518] (english) TIP #107
* * tests/wm.test: Add deleteWindows at start ofmdejong2002-08-081-1/+6
| | | | | | | new transient tests so they do not fail if the toplevels already exist. * unix/tkUnixWm.c: Revert patch for Tk Bug #592201 which incorrectly removed numTransients member.
* Fix for Tk Bug #592201 "wm transient fails with two masters".jenglish2002-08-081-1/+57
|
* Objectifed wm. [Patch #564521]pspjuth2002-07-251-105/+849
|
* * Converted more files to tcltest and factored out common code.dgp2002-07-131-11/+6
|
* * Converted several files in the Tk test suite for testing bydgp2002-07-121-6/+8
| | | | tcltest 2.1.
* * tests/winWm.test: Verify that both an unmappedmdejong2002-06-241-1/+57
| | | | | | | | | | | | | | | | | | | | 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.
* * 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]
* * tests/unixWm.test:mdejong2002-06-131-1/+57
| | | | | * tests/wm.test: Move wm minsize and wm maxsize usage tests into the cross platform wm tests.
* * changes: Add note about new transient behavior.mdejong2002-06-121-3/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-271-3/+7
| | | | | | | | | | | | | | 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-241-1/+43
| | | | | | | | | | | * 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.