Tk Source Code

View Ticket
Login
Ticket UUID: 1067251
Title: test failure winWm
Type: Bug Version: obsolete: 8.5a1
Submitter: vincentdarley Created on: 2004-11-16 10:31:52
Subsystem: 68. Win Window Operations Assigned To: chengyemao
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-12-21 12:07:34
Resolution: None Closed By: chengyemao
    Closed on: 2004-12-21 05:07:34
Description:
in cvs head, this test fails:


==== 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
User Comments: chengyemao added on 2004-12-21 12:07:34:
Logged In: YES 
user_id=191079

The result {50 50 31} is due to the wrapper of the menu 
items.  It is expected with the current implementation.  In 
other words the test scritps is wrong.  To get the desired 
result, please set the width of the frame to 500.