summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/contextclick/AbstractContextClickTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/contextclick/AbstractContextClickTest.java')
-rw-r--r--uitest/src/com/vaadin/tests/contextclick/AbstractContextClickTest.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/contextclick/AbstractContextClickTest.java b/uitest/src/com/vaadin/tests/contextclick/AbstractContextClickTest.java
index cff063db5f..272cbfdc0e 100644
--- a/uitest/src/com/vaadin/tests/contextclick/AbstractContextClickTest.java
+++ b/uitest/src/com/vaadin/tests/contextclick/AbstractContextClickTest.java
@@ -79,7 +79,9 @@ public abstract class AbstractContextClickTest extends MultiBrowserTest {
AbstractComponentElement component = $(AbstractComponentElement.class)
.id("testComponent");
- contextClick(component);
+ int x = 20;
+ int y = 20;
+ contextClick(component, x, y);
Point l = component.getLocation();
@@ -91,8 +93,8 @@ public abstract class AbstractContextClickTest extends MultiBrowserTest {
int xCoord = Integer.parseInt(matcher.group(1));
int yCoord = Integer.parseInt(matcher.group(2));
- int xExpected = l.getX() + 10;
- int yExpected = l.getY() + 10;
+ int xExpected = l.getX() + x;
+ int yExpected = l.getY() + y;
Assert.assertTrue(
"X Coordinate differs too much from expected. Expected: "