diff options
author | patthoyts <patthoyts@noemail.net> | 2008-11-03 14:36:20 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@noemail.net> | 2008-11-03 14:36:20 (GMT) |
commit | be32a3dace56ae04504f3f1a5f1ca6da9be98899 (patch) | |
tree | 0a5d101004b4fd7b5aec1baf1539e033bd43cafa /tests/winfo.test | |
parent | ac660a924a94f2d4732e54dd99c1f558a25e3809 (diff) | |
download | tk-be32a3dace56ae04504f3f1a5f1ca6da9be98899.zip tk-be32a3dace56ae04504f3f1a5f1ca6da9be98899.tar.gz tk-be32a3dace56ae04504f3f1a5f1ca6da9be98899.tar.bz2 |
Fixed an embedding test that became broken during the test upgrade. Killing a contained window should not destroy the container.
FossilOrigin-Name: 059619f4bd8ca4a6a5220d18eff8b293dee81233
Diffstat (limited to 'tests/winfo.test')
-rw-r--r-- | tests/winfo.test | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tests/winfo.test b/tests/winfo.test index 6754ca3..aa221c0 100644 --- a/tests/winfo.test +++ b/tests/winfo.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: winfo.test,v 1.16 2008/08/30 21:52:26 aniap Exp $ +# RCS: @(#) $Id: winfo.test,v 1.17 2008/11/03 14:36:20 patthoyts Exp $ package require tcltest 2.2 namespace import ::tcltest::* @@ -390,11 +390,12 @@ test winfo-13.1 {root coordinates of embedded toplevel} -setup { pack .emb.b -expand yes -fill both update - expr {[winfo rootx .emb] == [winfo rootx .con] \ - && [winfo rooty .emb] == [winfo rooty .con]} + list rootx [expr {[winfo rootx .emb] == [winfo rootx .con]}] \ + rooty [expr {[winfo rooty .emb] == [winfo rooty .con]}] } -cleanup { deleteWindows -} -result {1} +} -result {rootx 1 rooty 1} + test winfo-13.2 {destroying embedded toplevel} -setup { deleteWindows } -body { @@ -407,10 +408,10 @@ test winfo-13.2 {destroying embedded toplevel} -setup { destroy .emb update - expr {[winfo exists .emb.b] || [winfo exists .con]} + list embedded [winfo exists .emb.b] container [winfo exists .con] } -cleanup { deleteWindows -} -result 0 +} -result {embedded 0 container 1} test winfo-13.3 {destroying container window} -setup { deleteWindows @@ -424,10 +425,10 @@ test winfo-13.3 {destroying container window} -setup { destroy .con update - expr {[winfo exists .emb.b] || [winfo exists .emb]} + list child [winfo exists .emb.b] parent [winfo exists .emb] } -cleanup { deleteWindows -} -result 0 +} -result {child 0 parent 0} test winfo-13.4 {[winfo containing] with embedded windows} -setup { deleteWindows |