Tk Source Code

Artifact [8fbf2e57]
Login

Artifact 8fbf2e57f984980a5fcb1dfb2ba3ec1cb672e1ad:

Attachment "solarisnative.test.txt" to ticket [1374556f] added by lvirden 2005-12-07 00:02:15.
Tests running in interp:  /tmp/tk8.4.12/unix/tktest
Tests located in:  /tmp/tk8.4.12/tests
Tests running in:  /tmp/tk8.4.12/unix
Temporary files stored in /tmp/tk8.4.12/unix
Test files sourced into current interpreter
Running tests that match:  *
Skipping test files that match:  l.*.test
Only running test files that match:  *.test
Tests began at Tue Dec 06 10:37:12 EST 2005
bell.test
Bell should ring now ...
bgerror.test
bind.test
bitmap.test
border.test
button.test
canvImg.test
canvPs.test
canvRect.test
canvText.test
canvWind.test
canvas.test
choosedir.test
clipboard.test
clrpick.test
cmds.test
color.test
config.test
cursor.test
dialog.test
embed.test
entry.test
event.test
filebox.test
focus.test

==== focus-5.1 ChangeXFocus procedure, don't take focus unless have it FAILED
==== Contents of test case:

    focusSetup
    focus -force .t
    update
    set result [focus]
    send [dobg {tk appname}] {focus -force .; update}
    lappend result [focus]
    focus .t.b2
    update
    lappend result [focus]

---- Result was:
.t .t {}
---- Result should have been (exact matching):
.t {} {}
==== focus-5.1 FAILED

focusTcl.test
font.test

==== font-45.4 TkFontGetAliasList: match FAILED
==== Contents of test case:

    # can fail on Unix systems that have a real "times new roman" font
    font actual {{times new roman} 10} -family

---- Result was:
times new roman
---- Result should have been (exact matching):
times
==== font-45.4 FAILED

frame.test

==== frame-3.9 TkCreateFrame procedure, -use option FAILED
==== Contents of test case:

    catch {destroy .t}
    catch {destroy .x}
    toplevel .t -container 1 -width 300 -height 120
    wm geometry .t +0+0
    toplevel .x -width 140 -height 300 -use [winfo id .t] -bg green
    tkwait visibility .x
    set result "[expr [winfo rootx .x] - [winfo rootx .t]] [expr [winfo rooty .x] - [winfo rooty .t]] [winfo width .t] [winfo height .t]"
    destroy .t
    set result

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: window ".x" was deleted before its visibility changed
    while executing
"tkwait visibility .x"
    ("uplevel" body line 7)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== frame-3.9 FAILED


==== frame-3.10 TkCreateFrame procedure, -use option FAILED
==== Contents of test case:

    catch {destroy .t}
    catch {destroy .x}
    toplevel .t -container 1 -width 300 -height 120
    wm geometry .t +0+0
    option add *x.use [winfo id .t]
    toplevel .x -width 140 -height 300 -bg green
    tkwait visibility .x
    set result "[expr [winfo rootx .x] - [winfo rootx .t]] [expr [winfo rooty .x] - [winfo rooty .t]] [winfo width .t] [winfo height .t]"
     destroy .t
    option clear
    set result

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: window ".x" was deleted before its visibility changed
    while executing
"tkwait visibility .x"
    ("uplevel" body line 8)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== frame-3.10 FAILED

geometry.test
get.test
grab.test
grid.test
id.test
image.test
imgBmap.test
imgPPM.test
imgPhoto.test
listbox.test
macEmbed.test
macFont.test
macMenu.test
macWinMenu.test
macscrollbar.test
main.test
menu.test
menuDraw.test
menubut.test
message.test
msgbox.test
obj.test
oldpack.test
option.test
pack.test
panedwindow.test
place.test
raise.test
safe.test
scale.test
scrollbar.test
select.test
send.test
spinbox.test
text.test
textBTree.test
textDisp.test
textImage.test
textIndex.test
textMark.test
textTag.test
textWind.test
tk.test
unixButton.test
unixEmbed.test
unixFont.test
unixMenu.test
unixSelect.test
unixWm.test

==== 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+40
---- Result should have been (exact matching):
100x150+0+0
==== unixWm-4.3 FAILED


==== unixWm-50.1 Tk_CoordsToWindow procedure, finding a toplevel, x-coords FAILED
==== 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 [expr $x - 1] [expr $y + 250]]  [winfo containing $x [expr $y + 250]]  [winfo containing [expr $x + 99] [expr $y + 250]]  [winfo containing [expr $x + 100] [expr $y + 250]]  [winfo containing [expr $x + 199] [expr $y + 250]]  [winfo containing [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.5 Tk_CoordsToWindow procedure, handling menubars FAILED
==== Contents of test case:

    deleteWindows
    toplevel .t -width 300 -height 400 -bd 2 -relief raised
    frame .t.f -width 150 -height 120 -bg green
    place .t.f -x 10 -y 150
    wm geom .t +0+50
    frame .t.menu -width 100 -height 30 -bd 2 -relief raised
    frame .t.menu.f -width 40 -height 20 -bg purple
    place .t.menu.f -x 30 -y 10
    testmenubar window .t .t.menu
    tkwait visibility .t.menu
    update
    set x [winfo rootx .t]
    set y [winfo rooty .t]
    list [winfo containing $x [expr $y - 31]]  [winfo containing $x [expr $y - 30]]  [winfo containing [expr $x + 50] [expr $y - 19]]  [winfo containing [expr $x + 50] [expr $y - 18]]  [winfo containing [expr $x + 50] $y]  [winfo containing [expr $x + 11] [expr $y + 152]]  [winfo containing [expr $x + 12] [expr $y + 152]]

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: window ".t.menu" was deleted before its visibility changed
    while executing
"tkwait visibility .t.menu"
    ("uplevel" body line 11)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== unixWm-50.5 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

util.test
visual.test
visual_bb.test
winButton.test
winClipboard.test
winDialog.test
winFont.test
winMenu.test
winSend.test
winWm.test
window.test
winfo.test
wm.test
xmfbox.test

Tests ended at Tue Dec 06 10:51:19 EST 2005
all.tcl:	Total	8486	Passed	7641	Skipped	835	Failed	10
Sourced 91 Test Files.
Files with failing tests: focus.test font.test frame.test unixWm.test
Number of tests skipped for each constraint:
	14	altDisplay
	16	colorsFree
	5	emptyTest
	1	hasArial
	1	hasCourierNew
	1	hasTimesNew
	312	macOnly
	20	macOrPc
	1	memory
	104	nonPortable
	35	nt
	242	pcOnly
	4	pseudocolor
	5	pseudocolor8
	11	testmetrics
	1	userInteraction
	10	win
	1	winOnly
	51	winSend