summaryrefslogtreecommitdiffstats
path: root/tests/textBTree.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-02-11 20:45:27 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-02-11 20:45:27 (GMT)
commit784583fabc13c80d219daf0a6acdbfc62783239d (patch)
tree57bf5e7e7250b84bc16d7fa0fa19dfecde1daa96 /tests/textBTree.test
parent968a521de8898dbeb3926a2af63004958ad5f7d0 (diff)
parent7f41da748fce16f6accf68d1beed3e4a7e78ed71 (diff)
downloadtk-784583fabc13c80d219daf0a6acdbfc62783239d.zip
tk-784583fabc13c80d219daf0a6acdbfc62783239d.tar.gz
tk-784583fabc13c80d219daf0a6acdbfc62783239d.tar.bz2
Merged core-8-5-branch
Diffstat (limited to 'tests/textBTree.test')
-rw-r--r--tests/textBTree.test16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/textBTree.test b/tests/textBTree.test
index 41b3d98..ebd6c50 100644
--- a/tests/textBTree.test
+++ b/tests/textBTree.test
@@ -872,7 +872,21 @@ test btree-14.1 {check tag presence} -setup {
} -cleanup {
destroy .t
} -result {x y z}
-
+test btree-14.2 {TkTextIsElided} -setup {
+ destroy .t
+ text .t
+} -body {
+ .t delete 1.0 end
+ .t tag config hidden -elide 1
+ .t insert end "Line1\nLine2\nLine3\n"
+ .t tag add hidden 2.0 3.0
+ .t tag add sel 1.2 3.2
+ # next line used to panic because of "Bad tag priority being toggled on"
+ # (see bug [382da038c9])
+ .t index "2.0 - 1 display line linestart"
+} -cleanup {
+ destroy .t
+} -result {1.0}
test btree-15.1 {rebalance with empty node} -setup {
destroy .t