diff options
author | fvogel <fvogelnew1@free.fr> | 2012-11-22 21:12:45 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2012-11-22 21:12:45 (GMT) |
commit | 1445a5e93db731466f71c3d9ce14d5f0c13ae832 (patch) | |
tree | ff3b6d6fa5599860c6784b8f10c4c7855f7a269e /tests/textIndex.test | |
parent | 200834f077b18c8ca1f867369f74cb08db795931 (diff) | |
download | tk-1445a5e93db731466f71c3d9ce14d5f0c13ae832.zip tk-1445a5e93db731466f71c3d9ce14d5f0c13ae832.tar.gz tk-1445a5e93db731466f71c3d9ce14d5f0c13ae832.tar.bz2 |
[Bug 3588824]: bug in image index handling for weird image names
Diffstat (limited to 'tests/textIndex.test')
-rw-r--r-- | tests/textIndex.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/textIndex.test b/tests/textIndex.test index 0337fca..1837e7d 100644 --- a/tests/textIndex.test +++ b/tests/textIndex.test @@ -219,9 +219,21 @@ set weirdTag "funny . +- 22.1\n\t{" set weirdMark "asdf \n{-+ 66.2\t" .t mark set $weirdMark 4.0 .t tag config y -relief raised +set weirdImage "foo-1" +.t image create 2.0 -image [image create photo $weirdImage] test textIndex-3.1 {TkTextGetIndex, weird mark names} { list [catch {.t index $weirdMark} msg] $msg } {0 4.0} +test textIndex-3.2 {TkTextGetIndex, weird mark names} knownBug { + list [catch {.t index "$weirdMark -1char"} msg] $msg +} {0 4.0} +test textIndex-3.3 {TkTextGetIndex, weird image names} { + list [catch {.t index $weirdImage} msg] $msg +} {0 2.0} +test textIndex-3.4 {TkTextGetIndex, weird image names} knownBug { + list [catch {.t index "$weirdImage -1char"} msg] $msg +} {0 2.0} +.t delete 2.0 ; # remove the weirdImage test textIndex-4.1 {TkTextGetIndex, tags} { list [catch {.t index x.first} msg] $msg |