summaryrefslogtreecommitdiffstats
path: root/tests/textDisp.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-10-31 14:21:48 (GMT)
committervincentdarley <vincentdarley>2003-10-31 14:21:48 (GMT)
commit3e4b9ddf078d687679e15a6b5fc0c024884a1d9a (patch)
tree06535c94176e831d89c2632b0f0a94723bb55f9b /tests/textDisp.test
parent65d781267ff97522f0dbde3718a2f79f6cafeb14 (diff)
downloadtk-3e4b9ddf078d687679e15a6b5fc0c024884a1d9a.zip
tk-3e4b9ddf078d687679e15a6b5fc0c024884a1d9a.tar.gz
tk-3e4b9ddf078d687679e15a6b5fc0c024884a1d9a.tar.bz2
text widget bug fix
Diffstat (limited to 'tests/textDisp.test')
-rw-r--r--tests/textDisp.test25
1 files changed, 24 insertions, 1 deletions
diff --git a/tests/textDisp.test b/tests/textDisp.test
index da8659b..d1466ee 100644
--- a/tests/textDisp.test
+++ b/tests/textDisp.test
@@ -6,7 +6,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: textDisp.test,v 1.10 2003/10/31 09:02:16 vincentdarley Exp $
+# RCS: @(#) $Id: textDisp.test,v 1.11 2003/10/31 14:21:49 vincentdarley Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -3224,6 +3224,29 @@ test textDisp-31.6 {line update index shifting} {
set res
} {190 220 135 105 190}
+test textDisp-32.0 {everything elided} {
+ # Must not crash
+ pack [text .tt]
+ .tt insert 0.0 HELLO
+ .tt tag configure HIDE -elide 1
+ .tt tag add HIDE 0.0 end
+ update ; update ; update ; update
+ destroy .tt
+} {}
+
+test textDisp-32.1 {everything elided} {
+ # Must not crash
+ pack [text .tt]
+ update
+ .tt insert 0.0 HELLO
+ update
+ .tt tag configure HIDE -elide 1
+ update
+ .tt tag add HIDE 0.0 end
+ update ; update ; update ; update
+ destroy .tt
+} {}
+
deleteWindows
option clear