FEST

'enterText' not behaving correctly in vnc4server

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: FEST-Swing 1.1
  • Fix Version/s: FEST-Swing 1.2a2
  • Component/s: Swing
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    3

Description

From Olivier:

FEST behave differently between Windows and vnc4server using fixture textBox enterText.
On Windows it replace the whole text with the new one, on vnc4server, it put the text at the end of the previous one.
I don't know which one is correct.

In my case, the test are OK on Windows, but failing on vnc4server because of that.

Olivier's environment:
java.runtime.version 1.6.0_03-b05
os.arch i386
os.name Linux
os.version 2.6.26-1-amd64
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment

  1. NSMApis.java
    02/May/09 2:13 PM
    0.8 kB
    Olivier DOREMIEUX
  2. SimpleTest1.java
    02/May/09 2:13 PM
    2 kB
    Olivier DOREMIEUX
  3. Test1.java
    02/May/09 2:13 PM
    3 kB
    Olivier DOREMIEUX

Activity

Hide
Olivier DOREMIEUX added a comment -

A simple test to reproduce a problem with EnterText in a TextField after a Dialog show up.

Show
Olivier DOREMIEUX added a comment - A simple test to reproduce a problem with EnterText in a TextField after a Dialog show up.
Hide
Alex Ruiz added a comment -

Thank you so much Olivier for your help!

-Alex

Show
Alex Ruiz added a comment - Thank you so much Olivier for your help! -Alex
Hide
Olivier DOREMIEUX added a comment -

To solve the issue I did change ActivateWindowTask

Changing :
w.toFront();
w.toFront();

To
w.toFront();
w.requestFocus();

Show
Olivier DOREMIEUX added a comment - To solve the issue I did change ActivateWindowTask Changing : w.toFront(); w.toFront(); To w.toFront(); w.requestFocus();

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: