diff options
author | fvogelnew1@free.fr <fvogel> | 2014-11-30 22:01:10 (GMT) |
---|---|---|
committer | fvogelnew1@free.fr <fvogel> | 2014-11-30 22:01:10 (GMT) |
commit | 711fd5187b89c35d2533ccc0bed8b181baf8340c (patch) | |
tree | c549fbcfa67d31b2db2ae70ef6d2d3ae0bd4caee /tests/textDisp.test | |
parent | 71476a92e44c431741a6631781177042de9647ca (diff) | |
download | tk-711fd5187b89c35d2533ccc0bed8b181baf8340c.zip tk-711fd5187b89c35d2533ccc0bed8b181baf8340c.tar.gz tk-711fd5187b89c35d2533ccc0bed8b181baf8340c.tar.bz2 |
Fixed FindDLine again (the previous fix [575b376065] was an improvement despite it did not fix all cases), see case 'C' in bug [7703f947aa]
Diffstat (limited to 'tests/textDisp.test')
-rw-r--r-- | tests/textDisp.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/textDisp.test b/tests/textDisp.test index 3add847..b04b2ce 100644 --- a/tests/textDisp.test +++ b/tests/textDisp.test @@ -2777,6 +2777,19 @@ test textDisp-22.10 {TkTextCharBbox, handling of elided lines} {textfonts} { [expr {[lindex [.t bbox 7.1] 0] - [lindex [.t bbox 6.8] 0]}] \ [expr {[lindex [.t bbox 7.12] 0] - [lindex [.t bbox 6.8] 0]}] } [list 0 0 0 0 0 0 0 0 0 0 0] +test textDisp-22.11 {TkTextCharBbox, handling of wrapped elided lines} {textfonts} { + .t configure -wrap char + .t delete 1.0 end + for {set i 1} {$i < 10} {incr i} { + .t insert end "Line $i - Line _$i - Lines .$i - Line [format %c [expr 64+$i]]\n" + } + .t tag add hidden 1.30 2.5 + .t tag configure hidden -elide true + update + list \ + [expr {[lindex [.t bbox 1.30] 0] - [lindex [.t bbox 2.4] 0]}] \ + [expr {[lindex [.t bbox 1.30] 0] - [lindex [.t bbox 2.5] 0]}] +} [list 0 0] .t delete 1.0 end .t insert end "Line 1" |