summaryrefslogtreecommitdiffstats
path: root/tests/textDisp.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-02-08 22:01:40 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-02-08 22:01:40 (GMT)
commite3f770f740d53d681c1a90939d7d95570e489762 (patch)
treef8129018fdbb361ace97deb6b0fd4a85474927ff /tests/textDisp.test
parent3852f112212c56d7b2a9439c882920f976fb2da1 (diff)
parent2691a526a3b88206496cf17f0727d504262bde2c (diff)
downloadtk-e3f770f740d53d681c1a90939d7d95570e489762.zip
tk-e3f770f740d53d681c1a90939d7d95570e489762.tar.gz
tk-e3f770f740d53d681c1a90939d7d95570e489762.tar.bz2
Fixed (with a real fix this time) bug [06c1433906] - Text widget crash during delete
Diffstat (limited to 'tests/textDisp.test')
-rw-r--r--tests/textDisp.test13
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/textDisp.test b/tests/textDisp.test
index 5ac2e7a..353999f 100644
--- a/tests/textDisp.test
+++ b/tests/textDisp.test
@@ -1181,19 +1181,10 @@ test textDisp-8.12 {TkTextChanged, moving the insert cursor redraws only past an
.t mark set insert 3.8 ; # within the same line
update
lappend res $tk_textRedraw
- # This last one is tricky: correct result really is {2.0 3.0} when
- # calling .t mark set insert, two calls to TkTextChanged are done:
- # (a) to redraw the line of the past position of the cursor
- # (b) to redraw the line of the new position of the cursor
- # During (a) the display line showing the cursor gets unlinked,
- # which leads TkTextChanged in (b) to schedule a redraw starting
- # one line _before_ the line containing the insert cursor. This is
- # because during (b) findDLine cannot return the display line the
- # cursor is in since this display line was just unlinked in (a).
-} {{8.0 9.0} {8.0 12.0} {8.0 12.0} {3.0 8.0} {2.0 3.0}}
+} {{8.0 9.0} {8.0 12.0} {8.0 12.0} {3.0 8.0} {3.0 4.0}}
test textDisp-8.13 {TkTextChanged, used to crash, see [06c1433906]} {
.t delete 1.0 end
- .t insert 1.0 \nLine1\nLine2\n
+ .t insert 1.0 \nLine2\nLine3\n
update
.t insert 3.0 ""
.t delete 1.0 2.0