| Description: |
OriginalBugID: 3353 Bug
Version: 8.2.1
SubmitDate: '1999-11-05'
LastModified: '1999-11-23'
Severity: SER
Status: UnAssn
Submitter: techsupp
ChangedBy: jenn
RelatedBugIDs: 2181
OS: Solaris
OSVersion: 2.6
Name:
Jim McMaster
CustomShell:
My primary tcl/tk application is exmh, which uses "send" I would like to upgrade from the old version, for which I have no source, but am afraid I would crater exmh.
ReproducibleScript:
Compile under Solaris 2.6 with cc: WorkShop Compilers 4.2 30 Oct 1996 C
4.2. Run "make test"
ObservedBehavior:
The following tests fail:
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:
.t {} {}
==== focus-5.1 FAILED
==== focus-6.1 miscellaneous - embedded application in same process
FAILED
==== Contents of test case:
eval interp delete [interp slaves]
catch {destroy .t}
toplevel .t
wm geometry .t +0+0
frame .t.f1 -container 1
frame .t.f2
pack .t.f1 .t.f2
entry .t.f2.e1 -bg red
pack .t.f2.e1
bind all <FocusIn> {lappend x "focus in %W %d"}
bind all <FocusOut> {lappend x "focus out %W %d"}
interp create child
child eval "set argv {-use [winfo id .t.f1]}"
load {} tk child
child eval {
entry .e1 -bg lightBlue
pack .e1
bind all <FocusIn> {lappend x "focus in %W %d"}
bind all <FocusOut> {lappend x "focus out %W %d"}
set x {}
}
# Claim the focus and wait long enough for it to really arrive.
focus -force .t.f2.e1
after 300 {set timer 1}
vwait timer
set x {}
lappend x [focus] [child eval focus]
# See if a "focus" command will move the focus to the embedded
# application.
child eval {focus .e1}
after 300 {set timer 1}
vwait timer
lappend x |
child eval {lappend x |}
# Bring the focus back to the main application.
focus .t.f2.e1
after 300 {set timer 1}
vwait timer
set result [list $x [child eval {set x}]]
interp delete child
set result
---- Result was:
{{} {} |} |
---- Result should have been:
{.t.f2.e1 {} {focus out .t.f2.e1 NotifyNonlinear} {focus out .t.f2
NotifyNonlinearVirtual} {focus in .t.f1 NotifyNonlinear} | {focus out
.t.f1 NotifyNonlinear} {focus in .t.f2 NotifyNonlinearVirtual} {focus in
.t.f2.e1 NotifyNonlinear}} {{focus in . NotifyVirtual} {focus in .e1
NotifyAncestor} | {focus out .e1 NotifyAncestor} {focus out .
NotifyVirtual}}
==== focus-6.1 FAILED
send.test
==== send-8.1 Tk_SendCmd procedure, options FAILED
==== Contents of test case:
setupbg
set app [dobg {tk appname}]
set a 66
send -async $app [list send [tk appname] set a 77]
set result $a
after 200 set x 40
tkwait variable x
cleanupbg
lappend result $a
---- Result was:
66 66
---- Result should have been:
66 77
==== send-8.1 FAILED
unixEmbed.test
==== unixEmbed-5.2 EmbedFocusProc procedure, focusing on dead window
FAILED
==== Contents of test case:
foreach w [winfo child .] {
catch {destroy $w}
}
frame .f1 -container 1 -width 200 -height 50
pack .f1
dobg "set w1 [winfo id .f1]"
dobg {
eval destroy [winfo child .]
toplevel .t1 -use $w1
}
update
dobg {
after 200 {destroy .t1}
}
after 400
focus -force .f1
update
==== Test generated error:
bad window path name ".f1"
---- Result should have been:
==== unixEmbed-5.2 FAILED
Tests ended at Thu Oct 07 15:54:05 MDT 1999
all.tcl:Total6549Passed6123Skipped422Failed4
Sourced 84 Test Files.
Files with failing tests: focus.test send.test unixEmbed.test
Number of tests skipped for each constraint:
2altDisplay
2emptyTest
44macOnly
11macOrPc
1nonPOrtable
131nonPortable
230pcOnly
1userInteraction
DesiredBehavior:
All tests complete successfully
|