| Ticket UUID: | 582381 | |||
| Title: | win wm bugs | |||
| Type: | Bug | Version: | obsolete: 8.4b2 | |
| Submitter: | vincentdarley | Created on: | 2002-07-16 18:09:22 | |
| Subsystem: | 68. Win Window Operations | Assigned To: | mdejong | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2006-04-15 09:20:56 | |
| Resolution: | None | Closed By: | sf-robot | |
| Closed on: | 2006-04-15 02:20:56 | |||
| Description: |
Many of the tests in unixWm.test now run on
Windows. This is good, since many of those tests
are really cross-platform tests. However, many of
those tests do actually fail. I fixed a couple of
simple ones in cvs, but the rest are beyond me:
unixWm.test
==== unixWm-9.4 TkWmMapWindow procedure,
icon windows FAILED
==== Contents of test case:
catch {destroy .t}
sleep 500
toplevel .t -width 100 -height 50 -bg blue
wm iconwindow . .t
update
set result [winfo ismapped .t]
---- Result was:
1
---- Result should have been (exact matching):
0
==== unixWm-9.4 FAILED
==== unixWm-27.6 Tk_WmCmd
procedure, "iconwindow" option, changing icons
FAILED
==== Contents of test case:
catch {destroy .icon}
catch {destroy .icon2}
toplevel .icon -width 50 -height 50 -bg green
toplevel .icon2 -width 50 -height 50 -bg red
set result {}
wm iconwindow .t .icon
lappend result [wm state .icon] [wm state .icon2]
wm iconwindow .t .icon2
lappend result [wm state .icon] [wm state .icon2]
destroy .icon .icon2
set result
---- Result was:
icon normal normal icon
---- Result should have been (exact matching):
icon normal withdrawn icon
==== unixWm-27.6 FAILED
==== unixWm-27.7 Tk_WmCmd
procedure, "iconwindow" option, withdrawing icon
FAILE
D
==== Contents of test case:
catch {destroy .icon}
toplevel .icon -width 50 -height 50 -bg green
wm geometry .icon +0+0
update
set result {}
lappend result [wm state .icon] [winfo
viewable .icon]
wm iconwindow .t .icon
lappend result [wm state .icon] [winfo
viewable .icon]
destroy .icon
set result
---- Result was:
couldn't send withdraw message to window
manager
---- Result should have been (exact matching):
normal 1 icon 0
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
==== unixWm-27.7 FAILED
==== unixWm-42.1 WrapperEventProc procedure,
map and unmap events FAILED
==== Contents of test case:
catch {destroy .t}
toplevel .t -width 400 -height 150
wm geometry .t +0+0
tkwait visibility .t
set result {}
bind .t <Map> {set x "mapped"}
bind .t <Unmap> {set x "unmapped"}
set x {no event}
wm iconify .t
lappend result $x [winfo ismapped .t]
set x {no event}
wm deiconify .t
lappend result $x [winfo ismapped .t]
---- Result was:
unmapped 0 {no event} 1
---- Result should have been (exact matching):
unmapped 0 mapped 1
==== unixWm-42.1 FAILED
==== unixWm-48.1 ParseGeometry procedure
FAILED
==== Contents of test case:
wm geometry .t =100x120
update
list [winfo width .t] [winfo height .t]
---- Result was:
104 120
---- Result should have been (exact matching):
100 120
==== unixWm-48.1 FAILED
==== unixWm-49.1 Tk_GetRootCoords procedure
FAILED
==== Contents of test case:
catch {destroy .t}
toplevel .t -width 300 -height 200
frame .t.f -width 150 -height 100 -bd 2 -relief
raised
place .t.f -x 150 -y 120
frame .t.f.f -width 20 -height 20 -bd 2 -relief
raised
place .t.f.f -x 10 -y 20
wm overrideredirect .t 1
wm geometry .t +40+50
tkwait visibility .t
list [winfo rootx .t.f.f] [winfo rooty .t.f.f]
---- Result was:
0 0
---- Result should have been (exact matching):
202 192
==== unixWm-49.1 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:
{} {} {} {} {} {} {} {}
---- Result should have been (exact matching):
{} {} .t {} .t2 .t2 {} .t
==== unixWm-50.1 FAILED
==== unixWm-50.2 Tk_CoordsToWindow
procedure, finding a toplevel, y-coords and o
verrideredirect FAILED
==== Contents of test case:
deleteWindows
toplevel .t -width 300 -height 400 -bg yellow
wm geom .t +0+50
tkwait visibility .t
toplevel .t2 -width 100 -height 80 -bg blue
wm overrideredirect .t2 1
wm geom .t2 +100+200
tkwait visibility .t2
raise .t2
set x [winfo rootx .t]
set y [winfo rooty .t]
set y2 [winfo rooty .t2]
list [winfo containing [expr $x +150] 10] [winfo
containing [expr $x +150]
[expr $y - 1]] [winfo containing [expr $x +150] $y]
[winfo containing [expr $x
+150] [expr $y2 - 1]] [winfo containing [expr $x
+150] $y2] [winfo containing
[expr $x +150] [expr $y2 + 79]] [winfo containing
[expr $x +150] [expr $y2 + 8
0]] [winfo containing [expr $x +150] [expr $y +
450]]
---- Result was:
{} {} {} {} {} {} {} {}
---- Result should have been (exact matching):
{} {} .t .t .t2 .t2 .t {}
==== unixWm-50.2 FAILED
==== unixWm-50.3 Tk_CoordsToWindow
procedure, finding a toplevel with embedding
FAILED
==== Contents of test case:
deleteWindows
toplevel .t -width 300 -height 400 -bg blue
wm geom .t +0+50
frame .t.f -container 1
place .t.f -x 150 -y 50
tkwait visibility .t.f
setupbg
dobg "
wm withdraw .
toplevel .x -width 100 -height 80 -use
[winfo id .t.f] -bg yellow
tkwait visibility .x"
set result [dobg {
set x [winfo rootx .x]
set y [winfo rooty .x]
list [winfo containing [expr $x - 1] [expr
$y + 50]] [winfo containing
$x [expr $y +50]]
}]
set x [winfo rootx .t]
set y [winfo rooty .t]
lappend result [winfo containing [expr $x + 200]
[expr $y + 49]] [winfo con
taining [expr $x + 200] [expr $y +50]]
---- Result was:
{} {} {} {}
---- Result should have been (exact matching):
{} .x .t .t.f
==== unixWm-50.3 FAILED
==== unixWm-50.4 Tk_CoordsToWindow
procedure, window in other application FAILED
==== Contents of test case:
catch {destroy .t}
catch {interp delete slave}
toplevel .t -width 200 -height 200 -bg green
wm geometry .t +0+0
tkwait visibility .t
interp create slave
load {} Tk slave
slave eval {wm geometry . 200x200+0+0; tkwait
visibility .}
set result [list [winfo containing 100 100] [slave
eval {winfo containing 1
00 100}]]
interp delete slave
set result
---- Result was:
{} {}
---- Result should have been (exact matching):
{} .
==== unixWm-50.4 FAILED
==== unixWm-50.6 Tk_CoordsToWindow
procedure, embedding within one app. FAILED
==== Contents of test case:
deleteWindows
toplevel .t -width 300 -height 400 -bg orange
wm geom .t +0+50
frame .t.f -container 1
place .t.f -x 150 -y 50
tkwait visibility .t.f
toplevel .t2 -width 100 -height 80 -bg green -
use [winfo id .t.f]
tkwait visibility .t2
update
set x [winfo rootx .t]
set y [winfo rooty .t]
list [winfo containing [expr $x +149] [expr $y +
80]] [winfo containing [ex
pr $x +150] [expr $y +80]] [winfo containing [expr
$x +249] [expr $y +80]] [wi
nfo containing [expr $x +250] [expr $y +80]]
---- Result was:
{} {} {} {}
---- Result should have been (exact matching):
.t .t2 .t2 .t
==== unixWm-50.6 FAILED
==== unixWm-50.7 Tk_CoordsToWindow
procedure, more basics FAILED
==== Contents of test case:
catch {destroy .t}
toplevel .t -width 300 -height 400 -bg green
wm geom .t +0+0
frame .t.f -width 100 -height 200 -bd 2 -relief
raised
place .t.f -x 100 -y 100
frame .t.f.f -width 100 -height 200 -bd 2 -relief
raised
place .t.f.f -x 0 -y 100
tkwait visibility .t.f.f
set x [expr [winfo rootx .t] + 150]
set y [winfo rooty .t]
list [winfo containing $x [expr $y + 50]] [winfo
containing $x [expr $y + 1
50]] [winfo containing $x [expr $y + 250]] [winfo
containing $x [expr $y + 350
]] [winfo containing $x [expr $y + 450]]
---- Result was:
{} {} {} {} {}
---- Result should have been (exact matching):
.t .t.f .t.f.f .t {}
==== unixWm-50.7 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:
{} {} {} {} {}
---- Result should have been (exact matching):
.t .t.f .t.f.f .t {}
==== unixWm-50.8 FAILED
==== unixWm-50.9 Tk_CoordsToWindow
procedure, unmapped windows FAILED
==== Contents of test case:
catch {destroy .t}
catch {destroy .t2}
sleep 500 ;# Give window manager time to
catch up.
toplevel .t -width 200 -height 200 -bg green
wm geometry .t +0+0
tkwait visibility .t
toplevel .t2 -width 200 -height 200 -bg red
wm geometry .t2 +0+0
tkwait visibility .t2
set result [list [winfo containing 100 100]]
wm iconify .t2
lappend result [winfo containing 100 100]
---- Result was:
{} {}
---- Result should have been (exact matching):
.t2 .t
==== unixWm-50.9 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:
{} {}
---- Result should have been (exact matching):
.t.f .t
==== unixWm-50.10 FAILED
==== unixWm-51.6 TkWmRestackToplevel
procedure, window to be stacked isn't mappe
d FAILED
==== Contents of test case:
catch {destroy .t}
toplevel .t -width 200 -height 200 -bg green
wm geometry .t +0+0
tkwait visibility .t
catch {destroy .t2}
toplevel .t2 -width 200 -height 200 -bg red
wm geometry .t2 +0+0
winfo containing 100 100
---- Result was:
---- Result should have been (exact matching):
.t
==== unixWm-51.6 FAILED
==== unixWm-51.7 TkWmRestackToplevel
procedure, other window isn't mapped FAILED
==== Contents of test case:
foreach w {.t .t2 .t3} {
catch {destroy $w}
toplevel $w -width 200 -height 200 -bg
green
wm geometry $w +0+0
}
raise .t .t2
update
set result [list [winfo containing 100 100]]
lower .t3
lappend result [winfo containing 100 100]
---- Result was:
{} {}
---- Result should have been (exact matching):
.t3 .t
==== unixWm-51.7 FAILED
==== unixWm-51.8 TkWmRestackToplevel
procedure, overrideredirect windows FAILED
==== Contents of test case:
catch {destroy .t}
toplevel .t -width 200 -height 200 -bg green
wm overrideredirect .t 1
wm geometry .t +0+0
tkwait visibility .t
catch {destroy .t2}
toplevel .t2 -width 200 -height 200 -bg red
wm overrideredirect .t2 1
wm geometry .t2 +0+0
tkwait visibility .t2
# Need to use vrootx and vrooty to make tests
work correctly with
# virtual root window measures managers:
overrideredirect windows
# come up at (0,0) in display coordinates, not
virtual root
# coordinates.
set x [expr 100-[winfo vrootx .]]
set y [expr 100-[winfo vrooty .]]
set result [list [winfo containing $x $y]]
raise .t
lappend result [winfo containing $x $y]
raise .t2
lappend result [winfo containing $x $y]
---- Result was:
{} {} {}
---- Result should have been (exact matching):
.t2 .t .t2
==== unixWm-51.8 FAILED
==== unixWm-51.9 TkWmRestackToplevel
procedure, other window overrideredirect FA
ILED
==== Contents of test case:
foreach w {.t .t2 .t3} {
catch {destroy $w}
toplevel $w -width 200 -height 200 -bg
green
wm overrideredirect $w 1
wm geometry $w +0+0
tkwait visibility $w
}
lower .t3 .t2
update
# Need to use vrootx and vrooty to make tests
work correctly with
# virtual root window measures managers:
overrideredirect windows
# come up at (0,0) in display coordinates, not
virtual root
# coordinates.
set x [expr 100-[winfo vrootx .]]
set y [expr 100-[winfo vrooty .]]
set result [list [winfo containing $x $y]]
lower .t2
lappend result [winfo containing $x $y]
---- Result was:
{} {}
---- Result should have been (exact matching):
.t2 .t3
==== unixWm-51.9 FAILED
| |||
| User Comments: |
sf-robot added on 2006-04-15 09:20:56:
Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). dgp added on 2002-07-17 21:04:47: Logged In: YES user_id=80530 Use the built-in "tempNotWin" constraint for that purpose. nobody added on 2002-07-17 18:47:50: Logged In: NO In that case we should probably add a "winKnownBug" constraint, since there isn't any obvious reason to me why these can't be made to pass on Windows. mdejong added on 2002-07-17 06:00:59: Logged In: YES user_id=90858 If these tests don't pass under Windows then they need to have a constraint set so that they are not run. It is too late in the 8.4 process to go changing a number of WM related thing to try to "fix" these problems. If the tests do pass on both platforms, they need to go in wm.test. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki