| Ticket UUID: | 581795 | |||
| Title: | '$menu post' halts tcl script | |||
| Type: | Bug | Version: | obsolete: 8.4b2 | |
| Submitter: | vincentdarley | Created on: | 2002-07-15 17:32:18 | |
| Subsystem: | 68. Win Window Operations | Assigned To: | hobbs | |
| Priority: | 7 High | Severity: | ||
| Status: | Closed | Last Modified: | 2002-08-08 13:38:54 | |
| Resolution: | Accepted | Closed By: | hobbs | |
| Closed on: | 2002-08-08 06:38:54 | |||
| Description: |
unixWm.test numbers 54.1 and 54.2 both hang
under windows 2000. The user is required to click
somewhere (once for each test) and then the test
proceeds fine. The problem appears to be that
when the menu is posted, the script halts and it is
only when the user clicks somewhere that 'update'
is actually reached...
test unixWm-54.1 {TkpMakeMenuWindow
procedure, setting save_under} {
catch {destroy .t}
catch {destroy .m}
toplevel .t -width 300 -height 200 -bd 2 -relief
raised
bind .t <Expose> {set x exposed}
wm geom .t +0+0
update
menu .m
.m add command -label First
.m add command -label Second
.m add command -label Third
.m post 30 30
update
set x {no event}
destroy .m
set x
} {no event}
test unixWm-54.2 {TkpMakeMenuWindow
procedure, setting override_redirect} {
catch {destroy .m}
menu .m
.m add command -label First
.m add command -label Second
.m add command -label Third
.m post 30 30
update
set result [wm overrideredirect .m]
destroy .m
set result
} {1}
| |||
| User Comments: |
hobbs added on 2002-08-08 13:38:54:
Logged In: YES user_id=72656 this appears to not be a real problem, but if the discrepancies are seen as more than bugs, than someone can reopen this with another title. vincentdarley added on 2002-07-17 00:46:42: Logged In: YES user_id=32170 Not my part of Win Windows Operations, so assigning over to Jeff. Also changed the title of the bug report to be more descriptive. Notice, finally, that as pointed out in the Tcl Wiki, 'tk_popup' is another example of this unix-win discrepancy. On Unix the call is more-or-less asynchronous, but on Windows everything comes to a halt waiting for the user to do something with the popup. dgp added on 2002-07-16 07:30:10: Logged In: YES user_id=80530 I should assign to a "Win Windows Operations" maintainer for an answer, but that's you, Vince! Not sure how you guys split up that area.... vincentdarley added on 2002-07-16 01:19:14: Logged In: YES
user_id=32170
Forgetting for a moment where these tests should go
(win/unix/generic), the code in the tests looks pretty
straightforward Tcl. Why is there a difference between
the effects of a very simple command ('.m post') on
Windows and Unix? On Unix the script continues, on
Windows it halts and waits for user input. This really
strikes me as a bug, and is certainly not documented
anywhere I can see...
dgp added on 2002-07-16 01:09:37: Logged In: YES user_id=80530 Fixed by adding the "unix" constraint to the two hanging tests. Any other platform-specific tests should likewise be constrained with an appropriate constraint. Running as many tests as possible on all platforms helps uncover more bugs (witness the typo just discovered in tkWinWm.c) and encourages maximum cross-platform consistency. Using constraints also yield predictable test counts. mdejong added on 2002-07-16 00:57:53: Logged In: YES user_id=90858 The tests in this file should NOT be run under Windows. There used to be a check at the top of the file that would return unless running under Unix. It was broken by a recent checkin by dgp, assigning to him. Cross platform wm tests need to go in wm.test, the winWm.test and unixWm.test file need to be left as they were. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki