diff options
author | Mickael LANOE | 2014-11-18 13:56:34 +0000 |
---|---|---|
committer | Mickael LANOE | 2014-11-19 11:00:22 +0000 |
commit | 9f580e416b3072893c546ad3c8da33bc81bb4278 (patch) | |
tree | 51713da6ae68b5dcbc5486404d7ee50458d86e8f | |
parent | e85c9b2593010ff337023f5b614b716730c7d001 (diff) | |
download | org.eclipse.sirius-9f580e416b3072893c546ad3c8da33bc81bb4278.tar.gz org.eclipse.sirius-9f580e416b3072893c546ad3c8da33bc81bb4278.tar.xz org.eclipse.sirius-9f580e416b3072893c546ad3c8da33bc81bb4278.zip |
[442761] fix LockedTabBarTest.checkEnabledWithSelectedElement()
Fix a bug in the method
LockedTabBarTest.checkEnabledWithSelectedElement() that checks the
activation state of the "Arrange Selection" action.
Bug: 442761
Change-Id: Idaa88ce958935e3eec13fa611a0e252f6ad3410b
Signed-off-by: Mickael LANOE <mickael.lanoe@obeo.fr>
-rw-r--r-- | plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/tabbar/LockedTabBarTest.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/tabbar/LockedTabBarTest.java b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/tabbar/LockedTabBarTest.java index 2360693f8b..68d2d7bfc9 100644 --- a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/tabbar/LockedTabBarTest.java +++ b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/tabbar/LockedTabBarTest.java @@ -69,6 +69,8 @@ public class LockedTabBarTest extends AbstractSiriusSwtBotGefTestCase { private static final String ARRANGE_ALL = "Arrange All"; + private static final String ARRANGE_SELECTION = "Arrange Selection"; + private static final String ARRANGE_LINKED_BORDERED_NODES = "Arrange Linked Bordered Nodes"; private static final String PIN_SELECTION = "Pin selected elements"; @@ -208,7 +210,7 @@ public class LockedTabBarTest extends AbstractSiriusSwtBotGefTestCase { assertEnabled(bot.toolbarButtonWithTooltip(SET_STYLE_TO_WORKSPACE_IMAGE), enabled); // "Arrange Selection" drop down button - SWTBotToolbarDropDownButton arrangeSelectionMenu = bot.toolbarDropDownButton(); + SWTBotToolbarDropDownButton arrangeSelectionMenu = bot.toolbarDropDownButtonWithTooltip(ARRANGE_SELECTION); for (SWTBotMenu item : arrangeSelectionMenu.menuItems(new AllItemsExcept())) { assertEnabled(item, enabled); } @@ -255,6 +257,7 @@ public class LockedTabBarTest extends AbstractSiriusSwtBotGefTestCase { this.itemsNotToConsider = Lists.newArrayList(itemsNotToConsider); } + @Override public boolean matches(Object item) { if (item instanceof MenuItem) { for (String itemNotToConsider : itemsNotToConsider) { @@ -266,6 +269,7 @@ public class LockedTabBarTest extends AbstractSiriusSwtBotGefTestCase { return true; } + @Override public void describeTo(Description description) { } |