Tk Source Code

View Ticket
Login
Ticket UUID: 582383
Title: winWm.test failure
Type: Bug Version: obsolete: 8.4b2
Submitter: vincentdarley Created on: 2002-07-16 18:12:33
Subsystem: 68. Win Window Operations Assigned To: patthoyts
Priority: 7 High Severity: Minor
Status: Closed Last Modified: 2016-08-17 15:29:03
Resolution: Fixed Closed By: fvogel
    Closed on: 2016-08-17 15:29:03
Description:
There is one test failure in winWm.test on Windows.

winWm.test

==== winWm-5.1 UpdateGeometryInfo: menu 
resizing FAILED
==== Contents of test case:

    set result {}
    toplevel .t
    frame .t.f -width 150 -height 50 -bg red
    pack .t.f
    update
    set result [winfo height .t]
    menu .t.m
    .t.m add command -label foo
    .t conf -menu .t.m
    update
    lappend result [winfo height .t]
    .t.m add command -label "thisisreallylong"
    .t.m add command -label "thisisreallylong"
    update
    lappend result [winfo height .t]
    destroy .t
    set result

---- Result was:
50 50 32
---- Result should have been (exact matching):
50 50 50
==== winWm-5.1 FAILED
User Comments: fvogel added on 2016-08-17 15:29:03:

This was fixed 10 years ago by fixing the test result.

See [e3897e4615].


stwo added on 2010-12-18 08:20:45:
Assigning to patthoyts since he seems to know what's going on here.

patthoyts added on 2005-10-10 22:11:51:
Logged In: YES 
user_id=202636

The relevant code in tkWinWm.c:5683 suggests that we are
making attempts to keep resizing the window until we can get
the requested size.
This is evidently no longer working but suggests to me that
this is _not_ an invalid test but that something has changed
in Windows window management at some point.

wildcard_25 added on 2004-08-30 20:14:02:
Logged In: YES 
user_id=596509

Tk: v8.5a2 HEAD at 30-08-04
OS: WinXPsp1
Built with makefile.vc using VC7

==== winWm-5.1 UpdateGeometryInfo: menu resizing FAILED
==== Contents of test case:

    set result {}
    toplevel .t
    frame .t.f -width 150 -height 50 -bg red
    pack .t.f
    update
    set result [winfo height .t]
    menu .t.m
    .t.m add command -label foo
    .t conf -menu .t.m
    update
    lappend result [winfo height .t]
    .t.m add command -label "thisisreallylong"
    .t.m add command -label "thisisreallylong"
    update
    lappend result [winfo height .t]
    destroy .t
    set result

---- Result was:
50 50 31
---- Result should have been (exact matching):
50 50 50
==== winWm-5.1 FAILED

patthoyts added on 2003-08-13 20:07:47:
Logged In: YES 
user_id=202636

I assume that this test is not valid for Windows native
menus because they wrap the menubar. Perhaps we can add a
unixOnly constraint to this one?

vincentdarley added on 2002-08-14 22:47:44:
Logged In: YES 
user_id=32170

This discrepancy is quite large, and seems to be due to 
the native menu bar wrapping around onto a second 
row, and this, for some reason causes the window to 
shrink.  All very odd.