diff options
author | fvogel <fvogelnew1@free.fr> | 2012-02-28 20:14:21 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2012-02-28 20:14:21 (GMT) |
commit | 220b6aecbb178564d3ee630cf19c6aa8ae93a67d (patch) | |
tree | add824c5019c64a12957fa0d0b75cc242296b5f7 /tests/textTag.test | |
parent | 45e67a168fc74dc40011588fc29a08e46d5e8bd6 (diff) | |
parent | 1487608db176d526e0c03938073340f5f2a068eb (diff) | |
download | tk-220b6aecbb178564d3ee630cf19c6aa8ae93a67d.zip tk-220b6aecbb178564d3ee630cf19c6aa8ae93a67d.tar.gz tk-220b6aecbb178564d3ee630cf19c6aa8ae93a67d.tar.bz2 |
[Bug-1630262], [Bug-1615425]: segfault when deleting lines or tagging outside of the -startline/-endline range with peer text widgets. [Bug-3487407]: Weird text indices.
Diffstat (limited to 'tests/textTag.test')
-rw-r--r-- | tests/textTag.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/textTag.test b/tests/textTag.test index b112fc2..dcec25d 100644 --- a/tests/textTag.test +++ b/tests/textTag.test @@ -147,6 +147,19 @@ test textTag-2.13 {TkTextTagCmd - "add" option} haveCourier12 { .t tag add sel 1.1 1.5 2.4 .t tag ranges sel } {1.1 1.5 2.4 2.5} +test textTag-2.14 {tag add before -startline - Bug 1615425} haveCourier12 { + text .tt + for {set i 1} {$i <10} {incr i} { + .tt insert end "Line $i\n" + } + .tt tag configure mytag -font {Courier 12 bold} + .tt peer create .ptt + .ptt configure -startline 3 -endline 7 + # the test succeeds if next line does not crash + .tt tag add mytag 1.0 1.end + destroy .ptt .tt + set res 1 +} {1} catch {.t tag delete x} test textTag-3.1 {TkTextTagCmd - "bind" option} haveCourier12 { |