summaryrefslogtreecommitdiffstats
path: root/tests/unixEmbed.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unixEmbed.test')
-rw-r--r--tests/unixEmbed.test268
1 files changed, 134 insertions, 134 deletions
diff --git a/tests/unixEmbed.test b/tests/unixEmbed.test
index 2496c43..aedc80b 100644
--- a/tests/unixEmbed.test
+++ b/tests/unixEmbed.test
@@ -150,21 +150,21 @@ test unixEmbed-1.5a {TkpUseWindow procedure, creating Container records} -constr
unix testembed
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
frame .f2 -container 1 -width 200 -height 50
pack .f1 .f2
- slave alias w winfo id .f1
- slave eval {
+ child alias w winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t -use [w]
list [testembed] [expr {[lindex [lindex [testembed all] 0] 0] - [w]}]
}
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {{{XXX {} {} .t}} 0}
test unixEmbed-1.6 {TkpUseWindow procedure, creating Container records} -constraints {
@@ -190,23 +190,23 @@ test unixEmbed-1.6a {TkpUseWindow procedure, creating Container records} -constr
unix testembed
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
frame .f2 -container 1 -width 200 -height 50
pack .f1 .f2
- slave alias w1 winfo id .f1
- slave alias w2 winfo id .f2
- slave eval {
+ child alias w1 winfo id .f1
+ child alias w2 winfo id .f2
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
toplevel .t2 -use [w2]
testembed
}
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {{XXX {} {} .t2} {XXX {} {} .t1}}
test unixEmbed-1.7 {TkpUseWindow procedure, container and embedded in same app} -constraints {
@@ -253,21 +253,21 @@ test unixEmbed-2.1a {EmbeddedEventProc procedure} -constraints {
unix testembed
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
testembed
}
destroy .f1
update
- slave eval {
+ child eval {
testembed
}
} -cleanup {
@@ -295,14 +295,14 @@ test unixEmbed-2.2a {EmbeddedEventProc procedure} -constraints {
unix testembed
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
testembed
@@ -310,7 +310,7 @@ test unixEmbed-2.2a {EmbeddedEventProc procedure} -constraints {
testembed
}
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {}
test unixEmbed-2.3 {EmbeddedEventProc procedure} -constraints {
@@ -361,22 +361,22 @@ test unixEmbed-3.1 {ContainerEventProc procedure, detect creation} -constraints
test unixEmbed-3.1a {ContainerEventProc procedure, detect creation} -constraints {
unix testembed
} -setup {
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
+ child alias w1 winfo id .f1
set x [testembed]
- slave eval {
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
wm withdraw .t1
}
list $x [testembed]
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {{{XXX .f1 {} {}}} {{XXX .f1 {} {}}}}
test unixEmbed-3.2 {ContainerEventProc procedure, set size on creation} -constraints {
@@ -418,14 +418,14 @@ test unixEmbed-3.3a {ContainerEventProc procedure, disallow position changes} -c
unix
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1] -bd 2 -relief raised
update
@@ -434,7 +434,7 @@ test unixEmbed-3.3a {ContainerEventProc procedure, disallow position changes} -c
wm geometry .t1
}
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {200x200+0+0}
test unixEmbed-3.4 {ContainerEventProc procedure, disallow position changes} -constraints {
@@ -462,14 +462,14 @@ test unixEmbed-3.4a {ContainerEventProc procedure, disallow position changes} -c
unix
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
update
@@ -478,7 +478,7 @@ test unixEmbed-3.4a {ContainerEventProc procedure, disallow position changes} -c
wm geometry .t1
}
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {300x100+0+0}
test unixEmbed-3.5 {ContainerEventProc procedure, geometry requests} -constraints {
@@ -506,22 +506,22 @@ test unixEmbed-3.5a {ContainerEventProc procedure, geometry requests} -constrain
unix
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
.t1 configure -width 300 -height 80
update
}
- list [winfo width .f1] [winfo height .f1] [slave eval {wm geometry .t1}]
+ list [winfo width .f1] [winfo height .f1] [child eval {wm geometry .t1}]
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {300 80 300x80+0+0}
test unixEmbed-3.6 {ContainerEventProc procedure, map requests} -constraints {
@@ -551,14 +551,14 @@ test unixEmbed-3.6a {ContainerEventProc procedure, map requests} -constraints {
unix
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
set x unmapped
@@ -569,7 +569,7 @@ test unixEmbed-3.6a {ContainerEventProc procedure, map requests} -constraints {
set x
}
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {mapped}
test unixEmbed-3.7 {ContainerEventProc procedure, destroy events} -constraints {
@@ -599,16 +599,16 @@ test unixEmbed-3.7a {ContainerEventProc procedure, destroy events} -constraints
unix
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
+ child alias w1 winfo id .f1
bind .f1 <Destroy> {set x dead}
set x alive
- slave eval {
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
update
@@ -617,7 +617,7 @@ test unixEmbed-3.7a {ContainerEventProc procedure, destroy events} -constraints
update
list $x [winfo exists .f1]
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {dead 0}
@@ -648,14 +648,14 @@ test unixEmbed-4.1a {EmbedStructureProc procedure, configure events} -constraint
unix
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
update
@@ -664,7 +664,7 @@ test unixEmbed-4.1a {EmbedStructureProc procedure, configure events} -constraint
winfo geometry .t1
}
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {180x100+0+0}
test unixEmbed-4.2 {EmbedStructureProc procedure, destroy events} -constraints {
@@ -691,15 +691,15 @@ test unixEmbed-4.2a {EmbedStructureProc procedure, destroy events} -constraints
unix testembed
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
update
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
}
@@ -707,7 +707,7 @@ test unixEmbed-4.2a {EmbedStructureProc procedure, destroy events} -constraints
destroy .f1
list $x [testembed]
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result "{{XXX .f1 {} {}}} {}"
@@ -737,14 +737,14 @@ test unixEmbed-5.1a {EmbedFocusProc procedure, FocusIn events} -constraints {
unix
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
bind .t1 <FocusIn> {lappend x "focus in %W"}
@@ -754,9 +754,9 @@ test unixEmbed-5.1a {EmbedFocusProc procedure, FocusIn events} -constraints {
}
focus -force .f1
update
- slave eval {set x}
+ child eval {set x}
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {{focus in .t1}}
test unixEmbed-5.2 {EmbedFocusProc procedure, focusing on dead window} -constraints {
@@ -785,14 +785,14 @@ test unixEmbed-5.2a {EmbedFocusProc procedure, focusing on dead window} -constra
unix
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
update
@@ -802,7 +802,7 @@ test unixEmbed-5.2a {EmbedFocusProc procedure, focusing on dead window} -constra
focus -force .f1
update
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {}
test unixEmbed-5.3 {EmbedFocusProc procedure, FocusOut events} -constraints {
@@ -833,14 +833,14 @@ test unixEmbed-5.3a {EmbedFocusProc procedure, FocusOut events} -constraints {
unix
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
set x {}
@@ -850,12 +850,12 @@ test unixEmbed-5.3a {EmbedFocusProc procedure, FocusOut events} -constraints {
}
focus -force .f1
update
- set x [slave eval {update; set x }]
+ set x [child eval {update; set x }]
focus .
update
- list $x [slave eval {update; set x}]
+ list $x [child eval {update; set x}]
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {{{focus in .t1}} {{focus in .t1} {focus out .t1}}}
@@ -885,14 +885,14 @@ test unixEmbed-6.1a {EmbedGeometryRequest procedure, window changes size} -const
unix
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
update
@@ -903,7 +903,7 @@ test unixEmbed-6.1a {EmbedGeometryRequest procedure, window changes size} -const
list $x [winfo geom .t1]
}
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {{configure .t1 300 120} 300x120+0+0}
test unixEmbed-6.2 {EmbedGeometryRequest procedure, window changes size} -constraints {
@@ -931,15 +931,15 @@ test unixEmbed-6.2a {EmbedGeometryRequest procedure, window changes size} -const
unix
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
place .f1 -width 200 -height 200
update
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
update
@@ -950,7 +950,7 @@ test unixEmbed-6.2a {EmbedGeometryRequest procedure, window changes size} -const
list $x [winfo geom .t1]
}
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {{configure .t1 200 200} 200x200+0+0}
@@ -991,22 +991,22 @@ test unixEmbed-7.1a {TkpRedirectKeyEvent procedure, forward keystroke} -constrai
unix notAqua
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
deleteWindows
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
}
focus -force .
bind . <Key> {lappend x {key %A %E}}
set x {}
- set y [slave eval {
+ set y [child eval {
update
bind .t1 <Key> {lappend y {key %A}}
set y {}
@@ -1016,7 +1016,7 @@ test unixEmbed-7.1a {TkpRedirectKeyEvent procedure, forward keystroke} -constrai
update
list $x $y
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
bind . <Key> {}
} -result {{{key a 1}} {}}
@@ -1054,14 +1054,14 @@ test unixEmbed-7.2a {TkpRedirectKeyEvent procedure, don't forward keystroke widt
unix
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1]
}
@@ -1070,7 +1070,7 @@ test unixEmbed-7.2a {TkpRedirectKeyEvent procedure, don't forward keystroke widt
update
bind . <Key> {lappend x {key %A}}
set x {}
- set y [slave eval {
+ set y [child eval {
update
bind .t1 <Key> {lappend y {key %A}}
set y {}
@@ -1080,7 +1080,7 @@ test unixEmbed-7.2a {TkpRedirectKeyEvent procedure, don't forward keystroke widt
update
list $x $y
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
bind . <Key> {}
} -result {{} {{key b}}}
@@ -1113,30 +1113,30 @@ test unixEmbed-8.1 {TkpClaimFocus procedure} -constraints {
} -result {{{} .t1} .f1}
test unixEmbed-8.1a {TkpClaimFocus procedure} -constraints unix -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
frame .f2 -width 200 -height 50
pack .f1 .f2
update
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1] -highlightthickness 2 -bd 2 -relief sunken
}
# This should clear focus from the application embedded in .f1
focus -force .f2
update
- list [slave eval {
+ list [child eval {
set x [list [focus]]
focus .t1
update
lappend x [focus]
}] [focus]
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {{{} .t1} .f1}
test unixEmbed-8.2 {TkpClaimFocus procedure} -constraints unix -setup {
@@ -1211,14 +1211,14 @@ test unixEmbed-9.2a {EmbedWindowDeleted procedure, check embeddedPtr} -constrain
unix testembed
} -setup {
deleteWindows
- catch {interp delete slave}
- ::_test_tmp::testInterp slave
- load {} Tktest slave
+ catch {interp delete child}
+ ::_test_tmp::testInterp child
+ load {} Tktest child
} -body {
frame .f1 -container 1 -width 200 -height 50
pack .f1
- slave alias w1 winfo id .f1
- slave eval {
+ child alias w1 winfo id .f1
+ child eval {
destroy [winfo child .]
toplevel .t1 -use [w1] -highlightthickness 2 -bd 2 -relief sunken
set x {}
@@ -1227,7 +1227,7 @@ test unixEmbed-9.2a {EmbedWindowDeleted procedure, check embeddedPtr} -constrain
lappend x [testembed]
}
} -cleanup {
- interp delete slave
+ interp delete child
deleteWindows
} -result {{{XXX {} {} .t1}} {}}