summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2003-02-28 15:55:27 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2003-02-28 15:55:27 (GMT)
commit873b36742c3a5396db9bf63b1e1c1398fcc8e190 (patch)
tree65d2d3e7b7415f38d3e3b8073f91268f6abb44ea /tests
parent1ab48410176d32b8809903918546ca13f201bf38 (diff)
downloadtk-873b36742c3a5396db9bf63b1e1c1398fcc8e190.zip
tk-873b36742c3a5396db9bf63b1e1c1398fcc8e190.tar.gz
tk-873b36742c3a5396db9bf63b1e1c1398fcc8e190.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')
-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} {