summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2021-02-28 08:53:39 (GMT)
committerfvogel <fvogelnew1@free.fr>2021-02-28 08:53:39 (GMT)
commitf34acfade25075e5edea71801578a4025292533c (patch)
treed0f59f8826c9896ac90eb4fdaf14e8a07132a493
parente9e8b494737e167b08588328f87bbe5186c7f499 (diff)
downloadtk-f34acfade25075e5edea71801578a4025292533c.zip
tk-f34acfade25075e5edea71801578a4025292533c.tar.gz
tk-f34acfade25075e5edea71801578a4025292533c.tar.bz2
Binding to all in test event-9 introduces coupling between this test and other tests, for instance textTag-18.1, which then fails when event.test and textTag.test are run together. Fix this binding to .top only, which produces the same result (see the 'bind' man page: 'If the tag is the name of a toplevel window the binding applies to the toplevel window and all its internal windows.').
-rw-r--r--tests/event.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/event.test b/tests/event.test
index d71b664..e2ca9f5 100644
--- a/tests/event.test
+++ b/tests/event.test
@@ -872,7 +872,7 @@ test event-9 {no <Enter> event is generated for the container window when its
} -body {
toplevel .top
pack propagate .top 0
- bind all <Enter> {lappend res %W}
+ bind .top <Enter> {lappend res %W}
pack [frame .top.f -bg green -width 50 -height 50] -anchor se -side bottom
update
event generate .top.f <Motion> -warp 1 -x 25 -y 25 ; # <Enter> sent to .top and .top.f