Skip to content

Commit b6bf608

Browse files
committed
Add non-regression test btree-14.3 crashing before the fix in the previous commit [4bce1cc1].
1 parent c7c8201 commit b6bf608

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/textBTree.test

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,18 @@ test btree-14.2 {TkTextIsElided} -setup {
949949
} -cleanup {
950950
destroy .t
951951
} -result {1.0}
952+
test btree-14.3 {Bug [bdd1f64523] - switch the -elide state of a tag} -setup {
953+
destroy .t
954+
text .t
955+
} -body {
956+
.t insert end "text_ellipse" tag_ellipse
957+
.t insert end "text_hidden" tag_hidden
958+
.t tag configure tag_hidden -elide 1
959+
.t tag configure tag_ellipse -elide 1
960+
.t tag configure tag_hidden -elide 0 ; # used to crash (assertion failed)
961+
} -cleanup {
962+
destroy .t
963+
} -result {}
952964

953965
test btree-15.1 {rebalance with empty node} -setup {
954966
destroy .t

0 commit comments

Comments
 (0)