FEST

JTextComponentFixture.doubleClick() does not exhibit expected behavior (issue 313)

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.2a3
  • Component/s: Swing
  • Labels:
    None
  • Number of attachments :
    0

Description

Reported by woody.folsom

What steps will reproduce the problem?

  1. Create a JPanel which contains a JTextField.
  2. Observe that double-click causes selectAll when exercised manually.
  3. Create a FEST test case and invoke:
FrameFixture frameFixture = new FrameFixture(frame);
JPanelFixture pf = new JPanelFixture(frameFixture.robot, panel);
pf.textBox(textField).doubleClick();

compare this to

pf.textBox(textField).selectAll() or manually double-clicking

What is the expected output? What do you see instead?
Expected: text in JTextField should be highlighted as with selectAll()
Actual: Nothing visible occurs, effect is similar to slowly clicking twice.

What version of the product are you using? On what operating system?
FEST 1.2a2

Please provide any additional information below.
n/a


Original bug report at Google Code

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: