#2531 spinbox-1.8.4 fails

obsolete: 8.6a4
closed-fixed
5
2008-11-23
2008-11-03
Don Porter
No

Tk HEAD just started reporting this
in the full `make test` results:

spinbox.test

==== spinbox-1.8.4 -validate option: FAILED
==== Contents of test case:

.sb configure -validate all -validatecommand {lappend ::spinbox_test %P}
pack .sb
.sb set 50
focus .sb
after 100 {set ::spinbox_wait 1} ; vwait ::spinbox_wait
set ::spinbox_test

---- Result was:

---- Result should have been (exact matching):
50
==== spinbox-1.8.4 FAILED

Running just the spinbox.test files results
in no failure, so this is probably a test
isolation problem.

Discussion

  • Joe English

    Joe English - 2008-11-03

    Can't replicate. Pat?

     
  • Joe English

    Joe English - 2008-11-03
    • assigned_to: jenglish --> patthoyts
     
  • Joe English

    Joe English - 2008-11-03

    OK, can replicate now: this appears to be WM-sensitive.

    Cause of problem: [focus .sb] does not necessarily give .sb the focus; in particular, if the WM did not set focus to the tktest main window, .sb will never get a <FocusIn> event and validation will not trigger.

    Possible fix: replace:

    focus .sb ; after 100 {set ::spinbox_wait 1} ; vwait ::spinbox_wait

    with:

    focus -force .sb ; update

     
  • Pat Thoyts

    Pat Thoyts - 2008-11-03
    • status: open --> pending-fixed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed