summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2014-12-03 23:28:42 (GMT)
committerfvogel <fvogelnew1@free.fr>2014-12-03 23:28:42 (GMT)
commit31b4151d956ea2e938d6f516a2111d58f00737be (patch)
tree8736b9ef8e8f5b2f916b10716da9c48e58493743 /tests
parent9363e8c0313bfc15af7a9ab866cf1041c97300d5 (diff)
parentf2693008ed014c61875f98b5014116ccc9eb6764 (diff)
downloadtk-31b4151d956ea2e938d6f516a2111d58f00737be.zip
tk-31b4151d956ea2e938d6f516a2111d58f00737be.tar.gz
tk-31b4151d956ea2e938d6f516a2111d58f00737be.tar.bz2
Merged from branch bug-7703f947aa
Diffstat (limited to 'tests')
-rw-r--r--tests/textDisp.test20
1 files changed, 17 insertions, 3 deletions
diff --git a/tests/textDisp.test b/tests/textDisp.test
index a3f9ae9..fff52d4 100644
--- a/tests/textDisp.test
+++ b/tests/textDisp.test
@@ -1458,7 +1458,7 @@ test textDisp-11.15 {TkTextSetYView, only a few lines visible} {
update
.top.t see 11.0
.top.t index @0,0
- # Thie index 9.0 should be just visible by a couple of pixels
+ # The index 9.0 should be just visible by a couple of pixels
} {9.0}
test textDisp-11.16 {TkTextSetYView, only a few lines visible} {
.top.t yview 8.0
@@ -1471,9 +1471,23 @@ test textDisp-11.17 {TkTextSetYView, only a few lines visible} {
update
.top.t see 4.0
.top.t index @0,0
- # Thie index 2.0 should be just visible by a couple of pixels
+ # The index 2.0 should be just visible by a couple of pixels
} {2.0}
-destroy .top
+test textDisp-11.18 {TkTextSetYView, see in elided lines} {
+ .top.t delete 1.0 end
+ for {set i 1} {$i < 20} {incr i} {
+ .top.t insert end [string repeat "Line $i" 10]
+ .top.t insert end "\n"
+ }
+ .top.t yview 4.0
+ .top.t tag add hidden 4.10 "4.10 lineend"
+ .top.t tag add hidden 5.15 10.3
+ .top.t tag configure hidden -elide true
+ update
+ .top.t see "8.0 lineend"
+ # The index "8.0 lineend" is on screen despite elided -> no scroll
+ .top.t index @0,0
+} {4.0}
.t configure -wrap word
.t delete 50.0 51.0