commit | be0350c73c75b5dd087f2c2e0b5d69ec14e5c111 | [log] [tgz] |
---|---|---|
author | tkaiser <tkaiser> | Tue Feb 22 16:23:32 2011 +0000 |
committer | tkaiser <tkaiser> | Tue Feb 22 16:23:32 2011 +0000 |
tree | 349bdb96cdf4d418e823f88aefa22427d2046255 | |
parent | 3d422855a685916981039d13d4cebddcba097d0e [diff] |
fix test (centrally drag was not accurate, one pixel less than suspected)
diff --git a/tests/org.eclipse.graphiti.bot.tests/src/org/eclipse/graphiti/bot/tests/GFInteractionComponentTests.java b/tests/org.eclipse.graphiti.bot.tests/src/org/eclipse/graphiti/bot/tests/GFInteractionComponentTests.java index 8fdc2b2..54b68af 100644 --- a/tests/org.eclipse.graphiti.bot.tests/src/org/eclipse/graphiti/bot/tests/GFInteractionComponentTests.java +++ b/tests/org.eclipse.graphiti.bot.tests/src/org/eclipse/graphiti/bot/tests/GFInteractionComponentTests.java
@@ -122,7 +122,8 @@ Thread.sleep(1000); SWTBotGefEditPart editPart = ed.getEditPart(SHAPE_NAME); IFigure figure = ((GraphicalEditPart) editPart.part()).getFigure(); - assertEquals(x + 150, figure.getBounds().x); + // Drag might not be accurate, add tolerance +-1 + assertTrue((x + 149 <= figure.getBounds().x) && (figure.getBounds().x <= x + 151)); shutdownEditor(diagramEditor); }