diff options
author | vincentdarley <vincentdarley> | 2003-10-31 14:21:48 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2003-10-31 14:21:48 (GMT) |
commit | 3c6692fdf4370880f4446be2c310063acd2831f5 (patch) | |
tree | 06535c94176e831d89c2632b0f0a94723bb55f9b /tests | |
parent | 5aca2c785542acbefba1c55007389e41d19ea6f3 (diff) | |
download | tk-3c6692fdf4370880f4446be2c310063acd2831f5.zip tk-3c6692fdf4370880f4446be2c310063acd2831f5.tar.gz tk-3c6692fdf4370880f4446be2c310063acd2831f5.tar.bz2 |
text widget bug fix
Diffstat (limited to 'tests')
-rw-r--r-- | tests/textDisp.test | 25 |
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 |