summaryrefslogtreecommitdiffstats
path: root/tests/wm.test
Commit message (Collapse)AuthorAgeFilesLines
* bug 2239034: restrict [wm manage] to Frame type widgetspatthoyts2008-11-151-15/+103
| | | FossilOrigin-Name: 3f2db3b4e12e6a79d1b9a84887483e4fc1da9bd6
* * unix/tkUnixWm.c: Restored consistency of error messages fromdgp2008-10-081-3/+3
| | | | | | | * macosx/tkMacOSXWm.c: [wm iconphoto] with the test suite and across all platforms. [Bug 2021443] FossilOrigin-Name: 5059871b859dc024e48f5d9c89c8487feb40e6dc
* * tests/wm.test: Update expected error messages fromdgp2008-10-081-3/+3
| | | | | | [wm iconphoto] to match the new message. [Bug 2021443] FossilOrigin-Name: 001b25a8e2f2f3d9edee132c06439ab2a2ddfd5f
* Fixed some incorrect error string results and removed precision dependencies ↵patthoyts2008-10-061-3/+3
| | | | | in entry tests FossilOrigin-Name: 8b1e5e36ffab41bc77f0bdc9effadf5798afc361
* Check wmPtr is valid in TopLevelReqProc to fix [Bug 2028703]patthoyts2008-08-011-1/+11
| | | FossilOrigin-Name: 74f3c9813d04e65069301ff28a4d8f860124a5e7
* Check that the parent has been mapped before calling RemapWindows. [Bug 2009788]patthoyts2008-07-261-1/+28
| | | FossilOrigin-Name: 08c95e0bf7ad266336e5c9d7f4c31a05447b111e
* fix [2021443] inconsistant "wrong # args" messages (for Tk)nijtmans2008-07-231-3/+3
| | | FossilOrigin-Name: def570d7bdd7211b4c17c706781050222d16890f
* Rewrote so that tests clean up after themselves, not after the preceding test.dkf2008-03-201-885/+945
| | | FossilOrigin-Name: 3a036b1b70211ce93158f3c035569ac680da68fe
* * 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. FossilOrigin-Name: 64f2c3cc7b49703bd34d9a17d043dc7c4d4ce995
* * tests/wm.test: Update wm attributes outputmdejong2006-12-281-4/+4
| | | | | | | so that tests pass after addition of -transparentcolor for Win32. FossilOrigin-Name: 9b6fc1d4d44036cc5b6d70c40ecd15684a19590b
* fix tests for TkAquavincentdarley2006-04-181-2/+5
| | | FossilOrigin-Name: b8ddb299b6bd6873f85bf3b3c197851c4bf94949
* (wm-attributes-1.2.4): correct expected resulthobbs2006-04-051-2/+6
| | | FossilOrigin-Name: c14beb210aed99a5c9f3d08b218c4b6335715218
* * 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]. FossilOrigin-Name: ccc511b09d1e067130758ee044fc476810c31a63
* Modified for the latest embedded/container window implementation for Windows ↵chengyemao2005-02-151-2/+30
| | | | | platform FossilOrigin-Name: aafb22fa04056cf2cf3bc4517b0c4b6167e44e90
* Use more tcltest 2 features so test contents can be less cluttered...dkf2005-02-091-224/+267
| | | FossilOrigin-Name: cc18c3feb45bc2b5dc363f3a89dbd6a79da7d779
* Tidy up coding style (better grouping of related tests)dkf2005-02-091-185/+39
| | | FossilOrigin-Name: ec83248e2f017fe67641e1ea93ccd3d9b7fae7cb
* * 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. FossilOrigin-Name: ad5c91fdde6b8fff79a32e6743178a978da6b1cd
* * 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] FossilOrigin-Name: 96b7bb4f893670fa9c634d5ff0ccda037ad686b2
* missed wm attr testhobbs2004-09-191-2/+2
| | | FossilOrigin-Name: 0a4b1ea276bad8bb15e66d7c4e639fd69c87e534
* Use standard constraint namesdkf2004-06-241-6/+6
| | | FossilOrigin-Name: b68974466ed32e033503df6749aeba87a041e4f6
* Fix for #742882 "Potential division by zero in gridded wm geometry"jenglish2004-06-161-3/+3
| | | FossilOrigin-Name: 4ca47059991de03c386b154f86b55de423cfb8d9
* First step towards improving test style. Also start using Tcl 8.5 features.dkf2004-05-231-4/+1
| | | FossilOrigin-Name: 8e6c4d129ce99dffc495e03b82bb2f284e6c1ffb
* Removed support for Mac OS Classic platform [Patch 918139]das2004-03-171-3/+3
| | | FossilOrigin-Name: 28ec831e756a8fba6e184ce2667ee594c4901904
* * 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. FossilOrigin-Name: 01af81ecf20f3111d08ac51117da1c5ca09c567d
* * 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] FossilOrigin-Name: 1047136cd828a543b628dac9491711e6f662cb3e
* 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" FossilOrigin-Name: f02d9ee02ce346aa3fee49bee5a9ed47d5cf4d8a
* * 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] FossilOrigin-Name: 35f7ae4fdc9831ebce4991bb57ad16ee1347afd6
* * tests/wm.test:hobbs2002-09-021-1/+20
| | | | | | | * unix/tkUnixWm.c: remove possible 2-second delay in 'raise'. [Patch #601518] (english) TIP #107 FossilOrigin-Name: 1d77e81a202a0a43c9f2463d6bccacb8640c53a5
* * 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. FossilOrigin-Name: 8bf516653dec88df045f4ede9bd20a29f36a2772
* Fix for Tk Bug #592201 "wm transient fails with two masters".jenglish2002-08-081-1/+57
| | | FossilOrigin-Name: 4e600e965166da9366159ab1c056fa4f581c2dc9
* Objectifed wm. [Patch #564521]pspjuth2002-07-251-105/+849
| | | FossilOrigin-Name: 92401d20cc4325169eeb6ae277fea3cd22014fb3
* * Converted more files to tcltest and factored out common code.dgp2002-07-131-11/+6
| | | FossilOrigin-Name: d5cee69da5b97ba8cb9ce46fc2770f0605d39e2a
* * Converted several files in the Tk test suite for testing bydgp2002-07-121-6/+8
| | | | | | tcltest 2.1. FossilOrigin-Name: 3892bfbf58651928daf7fae82d0d6453eb050f88
* * 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] FossilOrigin-Name: 1dd500e6c2a03f2824568f52e6022bb3e9d985ff
* * 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. FossilOrigin-Name: 033a5a14b699169c2ef9e9277c3b97bbfac41cd4
* * 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] FossilOrigin-Name: 18c2fcbb3135b4363ddb86da2a2e33b37dbbe0e5
* * 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. FossilOrigin-Name: 52e7d297f27a0720ec2c249dca41a6a58d9db969
* * 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. FossilOrigin-Name: b05e1154cf5528e467289fd82864e519f2a7c69b
* * 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. FossilOrigin-Name: c9b836ac06039b02353fba98ada7fb240b3fb2b4
* * 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. FossilOrigin-Name: 4f8883ed4b1b2d41c7beed32ab103ff4b8a2f0c6
* * 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. FossilOrigin-Name: 45a2053f23903de93a1d692f69fb0c79323eb69f
* * 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. FossilOrigin-Name: 7e89e7df59b461e3f3179063e3ef13a04505a48c
* * 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. FossilOrigin-Name: 847f6d256e60a0a9036c23b1f727ceacf69aa64b
* * 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] FossilOrigin-Name: 6a63d1d7a0f1be3097d743ebd8b1a1c3c46b07b5
* * tests/wm.test: Rewrite stackorder tests thatmdejong2002-01-191-11/+22
| | | | | | | deal with toplevels that have the overrideredirect flag set. [Tk bug 492259] FossilOrigin-Name: 9dab9a25b927b3b5bf2ce3a937e8b88b01be2c52
* Add TK patch 481148 to implement TIP 74, themdejong2001-12-041-0/+301
wm stackorder command. * doc/winfo.n: Update documentation for the winfo children command to indicate that top-level windows are not returned in stacking order. * doc/wm.n: Add documentation for wm stackorder. * generic/tkInt.decls (TkWmStackorderToplevel): Add decl for new function. * generic/tkIntDecls.h: Regen. * generic/tkStubInit.c: Regen. * tests/unixWm.test: Add stackorder command to test for wm command usage message. * tests/wm.test: Add new set of tests for generic window manager methods. * unix/tkUnixWm.c (Tk_WmCmd, TkWmStackorderToplevelWrapperMap, TkWmStackorderToplevel): Add unix implementation of new wm stackorder command. * win/tkWinWm.c (Tk_WmCmd, TkWmStackorderToplevelEnumProc, TkWmStackorderToplevelWrapperMap, TkWmStackorderToplevel): Add windows implementation of new wm stackorder command. FossilOrigin-Name: 45e73f13a603eba5167ba98b8dbe8ecbbab7a443