summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2021-11-17 22:38:28 (GMT)
committerfvogel <fvogelnew1@free.fr>2021-11-17 22:38:28 (GMT)
commit02f47d33f3acfecb3442b70263de443fea80d45d (patch)
tree0da52a40f51f06fba31e8a71f9dd9c8128874099
parent6b78110049c81492d124f94751739cd6dbc7afed (diff)
downloadtk-02f47d33f3acfecb3442b70263de443fea80d45d.zip
tk-02f47d33f3acfecb3442b70263de443fea80d45d.tar.gz
tk-02f47d33f3acfecb3442b70263de443fea80d45d.tar.bz2
Adequate hygiene in the added tests prevents several failures (false positives) when running the complete test suite.
-rw-r--r--tests/event.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/event.test b/tests/event.test
index 3fb29ed..84af0c7 100644
--- a/tests/event.test
+++ b/tests/event.test
@@ -892,7 +892,9 @@ test event-9 {no <Enter> event is generated for the container window when its
}
} -result {.top .top.f}
-test event-9.1 {enter . window by destroying a toplevel - bug b1d115fa60} -body {
+test event-9.1 {enter . window by destroying a toplevel - bug b1d115fa60} -setup {
+ set EnterBind [bind . <Enter>]
+} -body {
wm geometry . 200x200+300+300
wm deiconify .
_pause 200
@@ -918,6 +920,7 @@ test event-9.2 {enter toplevel window by destroying a toplevel - bug b1d115fa60}
update
set iconified true
}
+ bind . <Enter> $EnterBind
} -body {
toplevel .top1
wm geometry .top1 200x200+300+300
@@ -941,6 +944,7 @@ test event-9.2 {enter toplevel window by destroying a toplevel - bug b1d115fa60}
wm deiconify .
update
}
+ destroy .top1
} -result {.top1}
# cleanup