summaryrefslogtreecommitdiffstats
path: root/tests/bind.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-02-28 15:55:27 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-02-28 15:55:27 (GMT)
commit6650b4dfd63ac7bfe3b9fadf0b5e93511f0f5ef5 (patch)
tree65d2d3e7b7415f38d3e3b8073f91268f6abb44ea /tests/bind.test
parenta2b945e479d95ec0087e318290399b8df68ef63e (diff)
downloadtk-6650b4dfd63ac7bfe3b9fadf0b5e93511f0f5ef5.zip
tk-6650b4dfd63ac7bfe3b9fadf0b5e93511f0f5ef5.tar.gz
tk-6650b4dfd63ac7bfe3b9fadf0b5e93511f0f5ef5.tar.bz2
Make all %-expansions generate ?? when their event doesn't have the right
underlying field to prevent a crash on Windows. [Bug #612110]
Diffstat (limited to 'tests/bind.test')
-rw-r--r--tests/bind.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/bind.test b/tests/bind.test
index e5ff490..b7df78b 100644
--- a/tests/bind.test
+++ b/tests/bind.test
@@ -7,7 +7,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: bind.test,v 1.10 2002/07/14 05:48:45 dgp Exp $
+# RCS: @(#) $Id: bind.test,v 1.11 2003/02/28 15:55:34 dkf Exp $
package require tcltest 2.1
namespace import -force tcltest::configure
@@ -1563,6 +1563,13 @@ test bind-16.43 {ExpandPercents procedure} {
event gen .b.f <ButtonRelease>
set x
} {422 13}
+test bind-16.44 {ExpandPercents procedure} {
+ setup
+ bind .b.f <Gravity> {set x "%R %S"}
+ set x none
+ event gen .b.f <Gravity>
+ set x
+} {?? ??}
test bind-17.1 {event command} {