summaryrefslogtreecommitdiffstats
path: root/tests/textDisp.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-02-08 21:13:57 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-02-08 21:13:57 (GMT)
commitd00d37bf4da1bd2c0ac1548af910aea41a4e1289 (patch)
tree89bcb05e9c6bfa950e448424a1a80d2f1119a0cd /tests/textDisp.test
parentafd2fa759f72c2936c5fcec0449acbaaaa93f989 (diff)
downloadtk-d00d37bf4da1bd2c0ac1548af910aea41a4e1289.zip
tk-d00d37bf4da1bd2c0ac1548af910aea41a4e1289.tar.gz
tk-d00d37bf4da1bd2c0ac1548af910aea41a4e1289.tar.bz2
Made FindDLine fully match its header description.
Diffstat (limited to 'tests/textDisp.test')
-rw-r--r--tests/textDisp.test11
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/textDisp.test b/tests/textDisp.test
index 6aa3721..885c940 100644
--- a/tests/textDisp.test
+++ b/tests/textDisp.test
@@ -1181,16 +1181,7 @@ 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 \nLine2\nLine3\n