summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-01-19 19:53:34 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-01-19 19:53:34 (GMT)
commit3a87207d3139e4ae8f5374edc0c87b18d42e10e1 (patch)
treef89178fd23eb2c6e8820b0e4024519aa7d1d6093 /tests
parent72b4a76ebaaa19264e89be9d96f5d292e1418b33 (diff)
parent074b536bf14a8c7eaf960ab7d72017cdc2380690 (diff)
downloadtk-3a87207d3139e4ae8f5374edc0c87b18d42e10e1.zip
tk-3a87207d3139e4ae8f5374edc0c87b18d42e10e1.tar.gz
tk-3a87207d3139e4ae8f5374edc0c87b18d42e10e1.tar.bz2
[Bug-3021557]: Moving the cursor in elided text freezes Tk
Diffstat (limited to 'tests')
-rw-r--r--tests/text.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/text.test b/tests/text.test
index 6cd1a07..2225481 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -2615,6 +2615,24 @@ test text-10.38 {TextWidgetCmd procedure, "count" option} -setup {
} -cleanup {
destroy .t
} -result {3 903 903 45}
+test text-10.39 {TextWidgetCmd procedure, "count" option} -setup {
+ text .t
+ pack .t
+ update
+ set res {}
+} -body {
+ .t insert end "Line 1 - This is Line 1\n"
+ .t insert end "Line 2 - This is Line 2\n"
+ .t insert end "Line 3 - This is Line 3\n"
+ .t insert end "Line 4 - This is Line 4\n"
+ .t insert end "Line 5 - This is Line 5\n"
+ lappend res [.t count -displaylines 1.19 3.24] [.t count -displaylines 1.0 end]
+ .t tag add hidden 2.9 3.17
+ .t tag configure hidden -elide true
+ lappend res [.t count -displaylines 1.19 3.24] [.t count -displaylines 1.0 end]
+} -cleanup {
+ destroy .t
+} -result {2 6 2 5}
test text-11.1 {counting with tag priority eliding} -setup {