| Ticket UUID: | cbab0f88d7d217ea23d75a156774239c38b7a9ce | |||
| Title: | textDisp.test | |||
| Type: | Bug | Version: | 8.6+ | |
| Submitter: | dgp | Created on: | 2017-02-02 17:10:49 | |
| Subsystem: | 18. [text] | Assigned To: | fvogel | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2023-01-08 19:32:49 | |
| Resolution: | Out of Date | Closed By: | fvogel | |
| Closed on: | 2023-01-08 19:32:49 | |||
| Description: |
Tests seem to fail in `make test` but not in isolation:
Likely bad tests rather than bad code
==== textDisp-19.17 count -ypixels with indices in elided lines FAILED
==== Contents of test case:
.t configure -wrap none
.t delete 1.0 end
for {set i 1} {$i < 100} {incr i} {
.t insert end [string repeat "Line $i" 20]
.t insert end "\n"
}
.t tag add hidden 5.15 20.15
.t tag configure hidden -elide true
set res {}
update
lappend res [.t count -ypixels 1.0 6.0] [.t count -ypixels 2.0 7.5] [.t count -ypixels 5.0 8.5] [.t count -ypixels 6.1 6.2] [.t count -ypixels 6.1 18.8] [.t count -ypixels 18.0 20.50] [.t count -ypixels 5.2 20.60] [.t count -ypixels 20.60 20.70] [.t count -ypixels 5.0 25.0] [.t count -ypixels 25.0 5.0] [.t count -ypixels 25.4 27.50] [.t count -ypixels 35.0 38.0]
.t yview 35.0
lappend res [.t count -ypixels 5.0 25.0]
---- Result was:
56 42 0 0 0 0 0 0 280 -280 28 42 280
---- Result should have been (exact matching):
56 42 0 0 0 0 0 0 70 -70 28 42 70
==== textDisp-19.17 FAILED
==== textDisp-19.18 count -ypixels with indices in elided lines FAILED
==== Contents of test case:
.t configure -wrap none
.t delete 1.0 end
for {set i 1} {$i < 100} {incr i} {
.t insert end [string repeat "Line $i" 20]
.t insert end "\n"
}
.t tag add hidden 5.15 20.15
.t tag configure hidden -elide true
.t yview 35.0
set res {}
update
lappend res [.t count -ypixels 5.0 25.0]
.t yview scroll [expr {- 15 * $fixedHeight}] pixels
update
lappend res [.t count -ypixels 5.0 25.0]
---- Result was:
280 70
---- Result should have been (exact matching):
70 70
==== textDisp-19.18 FAILED
| |||
| User Comments: |
fvogel added on 2023-01-08 19:32:49:
No further report or confirmation this would still happen came in for 6 years now. Closing as out-of-date (and closing the bugfix branch without merging). fvogel added on 2017-02-09 20:24:21: The OP reports that platform is CentOS Linux on KDE but cannot be more precise. Should be either 7.2.1511 or 7.3.1611. fvogel added on 2017-02-02 20:15:06: What platform? Does not happen for me on Win (Vista), OSX 10.12.2 or Linux Debian 8. Given the nature of the tests and in what manner they fail I think [4033fba3] could be a fix. Please try and report back. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki