Tk Source Code

View Ticket
Login
Ticket UUID: 970a3c8f4606d93755731fc570dfb47ef4b613c5
Title: textDisp-21.4 fails
Type: Bug Version: 8.7
Submitter: dgp Created on: 2022-09-07 15:11:25
Subsystem: 18. [text] Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2022-09-08 19:58:58
Resolution: None Closed By: nobody
    Closed on:
Description:
On MacOSX 12.5.1, with a macosx build of Tk 8.7 against Tcl 9.0, running the whole Tk test suite shows failure of one test

==== textDisp-21.4 count -displaylines regression FAILED
==== Contents of test case:

    set message {
   QOTW:  "C/C++, which is used by 16% of users, is the most popular programming language, but Tcl, used by 0%, seems to be the language of choice for the highest scoring users."
(new line)
Use the Up (cursor) key to scroll up one line at a time.  At the second press, the cursor either gets locked or jumps several lines.

Connect with Tkcon.  The command
.u count -displaylines  3.10 2.173
should give answer -1; it gives me 5.

Using 8.5a4 (ActiveState beta 4) under Linux.  No problem with ActiveState beta 3.
}

toplevel .tt
pack [text .tt.u] -side right
.tt.u configure -width 30 -height 27 -wrap word -bg #FFFFFF
.tt.u insert end $message
.tt.u mark set insert 3.10
tkwait visibility .tt.u
set res [.tt.u count -displaylines 3.10 2.173]
destroy .tt
unset message
set res

---- Result was:
-13
---- Result should have been (exact matching):
-1
==== textDisp-21.4 FAILED
User Comments: fvogel added on 2022-09-08 19:58:58:
Can you reproduce this failure each time you run the test suite? I bet not.