| Ticket UUID: | 89a638af38bb5bb0c9483bcdb5b90d29bb779c4d | |||
| Title: | OS X - textDisp-15.8 fails | |||
| Type: | Bug | Version: | core-8-6-branch | |
| Submitter: | fvogel | Created on: | 2017-01-22 08:53:27 | |
| Subsystem: | 86. Test Tools | Assigned To: | fvogel | |
| Priority: | 6 | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2017-01-23 20:13:52 | |
| Resolution: | Fixed | Closed By: | fvogel | |
| Closed on: | 2017-01-23 20:13:52 | |||
| Description: |
On OS X, textDisp-15.8 fails as follows:
==== textDisp-15.8 Scrolling near end of window FAILED
==== Contents of test case:
set textheight 12
set textwidth 30
toplevel .tf
frame .tf.f -relief sunken -borderwidth 2
pack .tf.f -padx 10 -pady 10
text .tf.f.t -font {Courier 9} -height $textheight -width $textwidth -yscrollcommand ".tf.f.sb set"
scrollbar .tf.f.sb -command ".tf.f.t yview"
pack .tf.f.t -side left -expand 1 -fill both
pack .tf.f.sb -side right -fill y
.tf.f.t tag configure Header -font {Helvetica 14 bold italic} -wrap word -spacing1 12 -spacing3 4
.tf.f.t insert end "Foo" Header
for {set i 1} {$i < $textheight} {incr i} {
.tf.f.t insert end "\nLine $i"
}
update ; after 1000 ; update
# Should scroll and should not crash!
.tf.f.t yview scroll 1 unit
# Check that it has scrolled
set res [.tf.f.t index @0,[expr [winfo height .tf.f.t] - 15]]
destroy .tf
set res
---- Result was:
11.0
---- Result should have been (exact matching):
12.0
==== textDisp-15.8 FAILED
| |||
| User Comments: |
fvogel added on 2017-01-23 20:13:41:
Merged to core-8-6-branch and trunk. fvogel added on 2017-01-22 20:59:20: Test still passes on Linux Debian 8. fvogel added on 2017-01-22 09:07:33: Fix: [cedcc9b5]. Test passes now for me on OS X (and on Win, as it already did). | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki