summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2007-12-11 22:14:57 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2007-12-11 22:14:57 (GMT)
commita66fba537adeec657cab51992dd3bf6468b22af1 (patch)
tree3918f2317b3bfcb7ac116ac2192f574b7c3d97b6 /tests
parent4135ae5e24a589df59dda3e746b267bfcebf2498 (diff)
downloadtk-a66fba537adeec657cab51992dd3bf6468b22af1.zip
tk-a66fba537adeec657cab51992dd3bf6468b22af1.tar.gz
tk-a66fba537adeec657cab51992dd3bf6468b22af1.tar.bz2
Added code to rebuild the from index after the deletion phase so that the
linePtr field is valid for the insertion phase. [Bug 1602537]
Diffstat (limited to 'tests')
-rw-r--r--tests/text.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/text.test b/tests/text.test
index e115d43..6306373 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.46 2006/10/17 10:21:50 patthoyts Exp $
+# RCS: @(#) $Id: text.test,v 1.47 2007/12/11 22:14:58 dkf Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -423,6 +423,15 @@ test text-8.24 {TextWidgetCmd procedure, "replace" option with peers, undo} {
lappend res 1
}
} {foo 0 1}
+test text-8.25 {TextWidgetCmd procedure, "replace" option crash} -setup {
+ destroy .tt
+} -body {
+ text .tt
+ .tt insert 0.0 foo\n
+ .tt replace end-1l end bar
+} -cleanup {
+ destroy .tt
+} -result {}
.t delete 1.0 end; .t insert 1.0 $prevtext