summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-12-11 22:14:57 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-12-11 22:14:57 (GMT)
commit52875fedbaf361884d806f4c695114bb457a5f6f (patch)
tree3918f2317b3bfcb7ac116ac2192f574b7c3d97b6 /tests
parent242ce3651c3918971461af2b30e913cef0890bca (diff)
downloadtk-52875fedbaf361884d806f4c695114bb457a5f6f.zip
tk-52875fedbaf361884d806f4c695114bb457a5f6f.tar.gz
tk-52875fedbaf361884d806f4c695114bb457a5f6f.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