Tk Source Code

View Ticket
Login
Ticket UUID: 1c5f27afe50981c5491dcbc309e1043cf748d311
Title: test winWm-5.2 newly fails
Type: Bug Version: trunk
Submitter: fvogel Created on: 2018-02-11 11:12:53
Subsystem: 86. Test Tools Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2018-02-11 11:20:27
Resolution: Fixed Closed By: fvogel
    Closed on: 2018-02-11 11:20:27
Description:

In trunk but not in core-8-6-branch:

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

    set result {}
    toplevel .t
    frame .t.f -width 150 -height 50 -background red
    pack .t.f
    wm geometry .t -0-0
    update
    set y [winfo rooty .t]
    lappend result [winfo height .t]
    menu .t.m
    .t configure -menu .t.m
    .t.m add command -label foo
    .t.m add command -label "thisisreallylong"
    .t.m add command -label "thisisreallylong"
    update
    lappend result [winfo height .t]
    lappend result [expr {$y - [winfo rooty .t]}]
    destroy .t
    return $result

---- Result was:
50 11 -39
---- Result should have been (exact matching):
50 50 0
==== winWm-5.2 FAILED

This is a recent failure, it did not happen as of 24 Sept. 2017.

User Comments: fvogel added on 2018-02-11 11:20:27:

Bisecting shows that:

[8acbe209aa] Merge branch tip-161 following acceptation of TIP #161 by TCT

is the first commit in trunk triggering this failure. This TIP changed the default value for -tearoff for menus, and this appears to have an impact on winWm-5.2.

Fix: [65fd52c83b].