Menu

#1793 test failure winWm

obsolete: 8.5a1
closed
5
2004-12-21
2004-11-16
No

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

Discussion

  • Chengye Mao

    Chengye Mao - 2004-12-21

    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.

     
  • Chengye Mao

    Chengye Mao - 2004-12-21
    • status: open --> closed