summaryrefslogtreecommitdiffstats
path: root/tests/textIndex.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-04-14 20:23:22 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-04-14 20:23:22 (GMT)
commit73929d05526216cfc46aa8ac2e9c3d679b811070 (patch)
tree2801ce3dc9de96a267eedcfbf12d04e96f4d7479 /tests/textIndex.test
parent147e6b910599a2694c45a672ca9a06e8864f78ad (diff)
downloadtk-73929d05526216cfc46aa8ac2e9c3d679b811070.zip
tk-73929d05526216cfc46aa8ac2e9c3d679b811070.tar.gz
tk-73929d05526216cfc46aa8ac2e9c3d679b811070.tar.bz2
Since we are here, also add test textIndex-19.12.2 checking for past end of text results in '+ n displaylines' calculations. This one does does not fail in core-8-6-branch (contrary to textIndex-19.12.1). Note to self: in revised_text the test should check 'end' instead of 'end - 1 c'.
Diffstat (limited to 'tests/textIndex.test')
-rw-r--r--tests/textIndex.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/textIndex.test b/tests/textIndex.test
index b2ab842..612ade1 100644
--- a/tests/textIndex.test
+++ b/tests/textIndex.test
@@ -807,6 +807,10 @@ test textIndex-19.12.1 {Display lines} {
.t index "2.50 - 100 displaylines"
} {1.0}
+test textIndex-19.12.2 {Display lines} {
+ .t compare [.t index "2.50 + 100 displaylines"] == "end - 1 c"
+} {1}
+
test textIndex-19.13 {Display lines} {
destroy {*}[pack slaves .]
text .txt -height 1 -wrap word -yscroll ".sbar set" -width 400