diff options
author | fvogel <fvogel@noemail.net> | 2012-11-24 08:23:27 (GMT) |
---|---|---|
committer | fvogel <fvogel@noemail.net> | 2012-11-24 08:23:27 (GMT) |
commit | 4b6065e14cd4c6a7bb0c1e7257971b66447913e4 (patch) | |
tree | 236bce19c4dd6a7a0c46977f608dc42d1f17fb64 /tests/textIndex.test | |
parent | 2900e5fff2298f4d1605fdff7274b63cfc8d01d3 (diff) | |
download | tk-4b6065e14cd4c6a7bb0c1e7257971b66447913e4.zip tk-4b6065e14cd4c6a7bb0c1e7257971b66447913e4.tar.gz tk-4b6065e14cd4c6a7bb0c1e7257971b66447913e4.tar.bz2 |
Added tests for weird embedded windows names
FossilOrigin-Name: f5d72ec4beec4ad3db5af38625d785e7bb458033
Diffstat (limited to 'tests/textIndex.test')
-rw-r--r-- | tests/textIndex.test | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/tests/textIndex.test b/tests/textIndex.test index 1837e7d..885ed8e 100644 --- a/tests/textIndex.test +++ b/tests/textIndex.test @@ -220,20 +220,30 @@ 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] +.t image create 2.1 -image [image create photo $weirdImage] +set weirdEmbWin ".t.bar-1" +entry $weirdEmbWin +.t window create 3.1 -window $weirdEmbWin 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} { +test textIndex-3.3 {TkTextGetIndex, weird embedded window names} { + list [catch {.t index $weirdEmbWin} msg] $msg +} {0 3.1} +test textIndex-3.4 {TkTextGetIndex, weird embedded window names} knownBug { + list [catch {.t index "$weirdEmbWin -1char"} msg] $msg +} {0 3.0} +test textIndex-3.5 {TkTextGetIndex, weird image names} { list [catch {.t index $weirdImage} msg] $msg -} {0 2.0} -test textIndex-3.4 {TkTextGetIndex, weird image names} knownBug { +} {0 2.1} +test textIndex-3.6 {TkTextGetIndex, weird image names} knownBug { list [catch {.t index "$weirdImage -1char"} msg] $msg } {0 2.0} -.t delete 2.0 ; # remove the weirdImage +.t delete 3.1 ; # remove the weirdEmbWin +.t delete 2.1 ; # remove the weirdImage test textIndex-4.1 {TkTextGetIndex, tags} { list [catch {.t index x.first} msg] $msg |