Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Redor2016-08-16 13:26:18 +0000
committerLaurent Redor2016-08-18 08:51:23 +0000
commit9ce7f9baa03bbc27654e53be79e9ed1a7938b105 (patch)
tree7c1dfde895f2691c05e3f2bef45dd2a4b00f0ede
parentbb1419b293e5524290245918cb12eadc72dc2b93 (diff)
downloadorg.eclipse.sirius-9ce7f9baa03bbc27654e53be79e9ed1a7938b105.tar.gz
org.eclipse.sirius-9ce7f9baa03bbc27654e53be79e9ed1a7938b105.tar.xz
org.eclipse.sirius-9ce7f9baa03bbc27654e53be79e9ed1a7938b105.zip
[496466] Fix TabBarTest test (again)
The previous fix [1] is partial and does not cover the case resolved with commit [2]. [1] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=673b4de0eeb06cc87c15295bd741a0f465dc4a61 [2] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=1dcd33112221bba76fdc3f9a3657deb1dd00d5a6 Bug: 496466 Change-Id: I42b969d82f89828e1c1f58dcb06aba6043182f1c Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
-rw-r--r--plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/tabbar/TabBarTest.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/tabbar/TabBarTest.java b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/tabbar/TabBarTest.java
index 6ce4959876..cde3eaca1e 100644
--- a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/tabbar/TabBarTest.java
+++ b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/tabbar/TabBarTest.java
@@ -509,6 +509,11 @@ public class TabBarTest extends AbstractSiriusSwtBotGefTestCase {
SWTBotToolbarDropDownButton toolbarDropDownButton = editor.bot().toolbarDropDownButton(i);
String expectedTooltip = DIAGRAM_TOOLBARDROPDOWNBUTTONS_TOOLTIPS[i];
assertEquals("The toolbarDropDownButton index " + i + " does not have the expected tooltip", expectedTooltip, toolbarDropDownButton.getToolTipText());
+ if (expectedTooltip.equals(Messages.PasteFormatAction_toolTipText)) {
+ // Paste layout is not enabled if there is no previous copy
+ // layout.
+ continue;
+ }
assertTrue("The toolbarDropDownButton with tooltip " + expectedTooltip + " should be enabled", toolbarDropDownButton.isEnabled());
}
for (int i = 0; i < diagramSelectedTabbarButtons.size(); i++) {
@@ -520,12 +525,6 @@ public class TabBarTest extends AbstractSiriusSwtBotGefTestCase {
} else {
assertEquals("The toolbarButton index " + i + " does not have the expected tooltip", expectedTooltip, editor.bot().toolbarButton(i).getToolTipText());
}
-
- if (expectedTooltip.equals(Messages.PasteFormatAction_toolTipText)) {
- // Paste layout is not enabled if there is no previous copy
- // layout.
- continue;
- }
assertTrue("The toolbarButton with tooltip " + expectedTooltip + " should be enabled", button.isEnabled());
}
for (int i = 0; i < DIAGRAM_TOOLBARTOGGLEBUTTONS_TOOLTIPS.length; i++) {

Back to the top