Tk Source Code

View Ticket
Login
Ticket UUID: 1719285
Title: unixwm test suite 4.x failures
Type: Bug Version: obsolete: 8.5a6
Submitter: lvirden Created on: 2007-05-15 13:19:59
Subsystem: 67. Unix Window Operations Assigned To: jenglish
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2007-05-15 23:21:11
Resolution: Invalid Closed By: jenglish
    Closed on: 2007-05-15 16:21:11
Description:
platform: sparc solaris 9, sun c compiler, latest tcl/tk cvs head, windows xp pro/exceed 10 x server

==== unixWm-4.1 moving window while withdrawn FAILED
==== Contents of test case:

        wm withdraw .t
        sleep 200
        wm geom .t $geom
        update
        wm deiconify .t
        wm geom .t
    
---- Result was:
100x150+57+80
---- Result should have been (exact matching):
100x150+20+80
==== unixWm-4.1 FAILED

==== unixWm-4.3 moving window while withdrawn FAILED
==== Contents of test case:

        wm withdraw .t
        sleep 200
        wm geom .t $geom
        update
        wm deiconify .t
        wm geom .t
    
---- Result was:
100x150+57+39
---- Result should have been (exact matching):
100x150+0+0
==== unixWm-4.3 FAILED

==== unixWm-48.13 ParseGeometry procedure, resize causes window to move FAILED
==== Contents of test case:

    catch {destroy .t}
    toplevel .t -width 200 -height 200
    wm geom .t +0+0
    update
    wm geom .t -0-0
    update
    set x [winfo x .t]
    set y [winfo y .t]
    wm geometry .t 150x300
    update
    list [expr [winfo x .t] - $x] [expr [winfo y .t] - $y]  [winfo width .t] [wi
nfo height .t]

---- Result was:
0 0 150 300
---- Result should have been (exact matching):
50 -100 150 300
==== unixWm-48.13 FAILED
==== unixWm-50.1 Tk_CoordsToWindow procedure, finding a toplevel, x-coords FAILE
D
==== Contents of test case:

    deleteWindows
    toplevel .t -width 300 -height 400 -bg green
    wm geom .t +40+0
    tkwait visibility .t
    toplevel .t2 -width 100 -height 80 -bg red
    wm geom .t2 +140+200
    tkwait visibility .t2
    raise .t2
    set x [winfo rootx .t]
    set y [winfo rooty .t]
    list [winfo containing [expr $x - 30] [expr $y + 250]]  [winfo containing [e
xpr $x - 1] [expr $y + 250]]  [winfo containing $x [expr $y + 250]]  [winfo cont
aining [expr $x + 99] [expr $y + 250]]  [winfo containing [expr $x + 100] [expr 
$y + 250]]  [winfo containing [expr $x + 199] [expr $y + 250]]  [winfo containin
g [expr $x + 200] [expr $y + 250]]  [winfo containing [expr $x + 220] [expr $y +
 250]]

---- Result was:
{} {} .t .t .t .t .t .t
---- Result should have been (exact matching):
{} {} .t {} .t2 .t2 {} .t
==== unixWm-50.1 FAILED
==== unixWm-50.8 Tk_CoordsToWindow procedure, more basics FAILED
==== Contents of test case:

    catch {destroy .t}
    toplevel .t -width 400 -height 300 -bg green
    wm geom .t +0+0
    frame .t.f -width 200 -height 100 -bd 2 -relief raised
    place .t.f -x 100 -y 100
    frame .t.f.f -width 200 -height 100 -bd 2 -relief raised
    place .t.f.f -x 100 -y 0
    update
    set x [winfo rooty .t]
    set y [expr [winfo rooty .t] + 150]
    list [winfo containing [expr $x + 50] $y]  [winfo containing [expr $x + 150]
 $y]  [winfo containing [expr $x + 250] $y]  [winfo containing [expr $x + 350] $
y]  [winfo containing [expr $x + 450] $y]

---- Result was:
.t.f .t.f.f .t {} {}
---- Result should have been (exact matching):
.t .t.f .t.f.f .t {}
==== unixWm-50.8 FAILED
==== unixWm-50.10 Tk_CoordsToWindow procedure, unmapped windows FAILED
==== Contents of test case:

    catch {destroy .t}
    toplevel .t -width 200 -height 200 -bg green
    wm geometry .t +0+0
    frame .t.f -width 150 -height 150 -bd 2 -relief raised
    place .t.f -x 25 -y 25
    tkwait visibility .t.f
    set result [list [winfo containing 100 100]]
    place forget .t.f
    update
    lappend result [winfo containing 100 100]

---- Result was:
.t .t
---- Result should have been (exact matching):
.t.f .t
==== unixWm-50.10 FAILED
User Comments: jenglish added on 2007-05-15 23:21:11:
Logged In: YES 
user_id=68433
Originator: NO

Many of the tests in unixWm.test are only expected to pass when run under the reference window manager (which I believe is twm).  Results above are within the range of acceptable behavior, nothing to worry about.

(We really ought to fix the test suite here...)