diff options
author | fvogel <fvogelnew1@free.fr> | 2015-12-26 21:19:12 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-12-26 21:19:12 (GMT) |
commit | 2dc0cc36f2f7a598c431be691a23a4d2898fa15e (patch) | |
tree | dabc381f3aef4f0c1e9acaf0a58e0d463d98f7ff /tests | |
parent | 57861d59eb37ef07b73b33a520091bf256c72b99 (diff) | |
parent | 1a7d3ba3cabd12bbfac8cf8a06c1cc2b755ce3dc (diff) | |
download | tk-2dc0cc36f2f7a598c431be691a23a4d2898fa15e.zip tk-2dc0cc36f2f7a598c431be691a23a4d2898fa15e.tar.gz tk-2dc0cc36f2f7a598c431be691a23a4d2898fa15e.tar.bz2 |
Fixed bug [2f78c7c5ea] - text widget segfault with tablelist
Diffstat (limited to 'tests')
-rw-r--r-- | tests/textDisp.test | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/textDisp.test b/tests/textDisp.test index 7aa2fef..ac3aee0 100644 --- a/tests/textDisp.test +++ b/tests/textDisp.test @@ -1333,6 +1333,30 @@ test textDisp-9.13 {TkTextRedrawTag} { update list $tk_textRelayout $tk_textRedraw } {{2.0 6.0 7.0} {2.0 6.0 7.0}} +test textDisp-9.14 {TkTextRedrawTag} { + pack [text .tnocrash] + for {set i 1} {$i < 6} {incr i} { + .tnocrash insert end \nfoo$i + } + .tnocrash tag configure mytag1 -relief raised + .tnocrash tag configure mytag2 -relief solid + update + proc doit {} { + .tnocrash tag add mytag1 4.0 5.0 + .tnocrash tag add mytag2 4.0 5.0 + after idle { + .tnocrash tag remove mytag1 1.0 end + .tnocrash tag remove mytag2 1.0 end + } + .tnocrash delete 1.0 2.0 + } + doit ; # must not crash + after 500 { + destroy .tnocrash + set done 1 + } + vwait done +} {} test textDisp-10.1 {TkTextRelayoutWindow} { .t configure -wrap char |