summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2008-11-12 22:17:02 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2008-11-12 22:17:02 (GMT)
commiteb0b75e8f2e2771db05eba200f781fa89ab5af27 (patch)
tree48ca3d562c82de8e6af65d997f651b529ff6650a /tests
parent7fce1231c97c299d0b4991034987c3e805fd1419 (diff)
downloadtk-eb0b75e8f2e2771db05eba200f781fa89ab5af27.zip
tk-eb0b75e8f2e2771db05eba200f781fa89ab5af27.tar.gz
tk-eb0b75e8f2e2771db05eba200f781fa89ab5af27.tar.bz2
backported fix for bug #1777362 to make events work for windows with hyphens in the path
Diffstat (limited to 'tests')
-rw-r--r--tests/text.test44
1 files changed, 43 insertions, 1 deletions
diff --git a/tests/text.test b/tests/text.test
index c195426..273dccd 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -6,7 +6,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: text.test,v 1.49 2007/12/13 15:27:54 dgp Exp $
+# RCS: @(#) $Id: text.test,v 1.49.2.1 2008/11/12 22:17:02 patthoyts Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -3625,6 +3625,48 @@ test text-33.3 {widget dump -command destroys widget} {
deleteWindows
option clear
+test text-36.1 "bug #1777362: event handling with hyphenated windows" -setup {
+ proc bgerror {m} {set ::my_error $m}
+ set ::my_error {}
+ pack [set w [text .t-1]]
+} -body {
+ tkwait visibility $w
+ event generate $w <1>
+ event generate $w <1>
+ update
+ set ::my_error
+} -cleanup {
+ destroy .t-1
+} -result {}
+
+test text-36.2 "bug #1777362: event handling with hyphenated windows" -setup {
+ proc bgerror {m} {set ::my_error $m}
+ set ::my_error {}
+ pack [set w [text .t+1]]
+} -body {
+ tkwait visibility $w
+ event generate $w <1>
+ event generate $w <1>
+ update
+ set ::my_error
+} -cleanup {
+ destroy $w
+} -result {}
+
+test text-36.3 "bug #1777362: event handling with hyphenated windows" -setup {
+ proc bgerror {m} {set ::my_error $m}
+ set ::my_error {}
+ pack [set w [text .t*1]]
+} -body {
+ tkwait visibility $w
+ event generate $w <1>
+ event generate $w <1>
+ update
+ set ::my_error
+} -cleanup {
+ destroy $w
+} -result {}
+
# cleanup
cleanupTests
return