benjamin84 / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

RobotFixture.click() with times > 1 fails #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. in JTableFixture using EventMode.AWT:
1.1. click(TableCell.row(row).column(0), MouseClickInfo.leftButton().times(2))

What is the expected output? What do you see instead?
Expected:
double click on jtable cell
See:
JFrame menu opens ?!?

Please provide any additional information below.

RobotFixture.click()

346:

    for (int i = times; i > 1; i--) {
      eventGenerator().releaseMouse(mask);
      eventGenerator().pressMouse(mask);
    }

AWTEventGenerator.pressMouse(int buttons)

152: Point where = inputState.mouseLocation();

actually this "where" will not point not to cell but to previous operation
(in my case menu selection)

Original issue reported on code.google.com by filim...@gmail.com on 25 Jun 2008 at 6:35

GoogleCodeExporter commented 9 years ago

Original comment by Alex.Rui...@gmail.com on 25 Jun 2008 at 2:33

GoogleCodeExporter commented 9 years ago
Fixed. The call to pressMouse in the loop needed to specify the coordinates 
where to
to press the mouse.

Original comment by Alex.Rui...@gmail.com on 31 Jul 2008 at 5:16

GoogleCodeExporter commented 9 years ago
Set the module as a label, instead of being part of the title.

Original comment by Alex.Rui...@gmail.com on 1 Dec 2008 at 2:05