Issue Details (XML | Word | Printable)

Key: FEST-102
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Alex Ruiz
Reporter: Steve
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FEST

JComboBoxFixture's enterText method ignores first character when entering text

Created: 17/Mar/09 06:28 PM   Updated: 29/Mar/09 06:09 PM   Resolved: 27/Mar/09 07:09 PM
Return to search
Component/s: Swing
Affects Version/s: FEST-Swing 1.1
Fix Version/s: FEST-Swing 1.2a1

Time Tracking:
Not Specified

File Attachments: 1. Java Source File ComboBoxesRobotTest.java (3 kB)
2. Zip Archive mylyn-context.zip (31 kB)

Environment:
Windows XP, Eclipse 3.4.2
fest-swing-1.1.jar
fest-reflect-1.1.jar
fest-assert-1.0.jar
fest-util-1.0.jar

Testcase included: yes


 Description  « Hide

JComboBoxFixture.enterText(String) is ignoring the first character entered when the first character is a number (also includes some symbols).

The test case attached has two tests that replicate the problem.



Steve added a comment - 17/Mar/09 07:54 PM

Work around it to enter text into the text field (via fixture) rather than directly in the combo box fixture:

JTextField textField = (JTextField) fixture.component().getEditor().getEditorComponent();
JTextComponentFixture textFixture = new JTextComponentFixture(robot, textField);
textFixture.enterText("20");


Alex Ruiz added a comment - 27/Mar/09 07:14 PM

Hi Steve,

The bug is fixed. I'd like to add you to the list of contributors. If you agree, please send me your full name and optionally, a link to your blog or personal web page to alex.ruiz.05 at gmail.com

Thanks a lot for your help!
-Alex


Steve added a comment - 29/Mar/09 06:09 PM

Good job Alex. I am happy to be added to the list of contributors, my full name is Stephen Neal. Keep up the good work.