diff options
author | dkf <dkf@noemail.net> | 2007-12-11 22:14:56 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2007-12-11 22:14:56 (GMT) |
commit | 99e332be876da8b0aae2385bdc40165d24de7da7 (patch) | |
tree | 3918f2317b3bfcb7ac116ac2192f574b7c3d97b6 /tests/text.test | |
parent | ecbd8ef25d3f8aaaccc74b3f5eec6d557babd579 (diff) | |
download | tk-99e332be876da8b0aae2385bdc40165d24de7da7.zip tk-99e332be876da8b0aae2385bdc40165d24de7da7.tar.gz tk-99e332be876da8b0aae2385bdc40165d24de7da7.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]
FossilOrigin-Name: 44205e71b2aa75beb41ed9c1d1ba65752eda3bd5
Diffstat (limited to 'tests/text.test')
-rw-r--r-- | tests/text.test | 11 |
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 |