diff options
| author | Laurent Redor | 2016-08-11 12:34:11 +0000 |
|---|---|---|
| committer | Laurent Redor | 2016-08-11 15:54:01 +0000 |
| commit | 673b4de0eeb06cc87c15295bd741a0f465dc4a61 (patch) | |
| tree | 4fd2f3354279172de5e9a74e5757d58979b453b6 | |
| parent | 510c13da259ad854c8ac55726e1f9607167e43f6 (diff) | |
| download | org.eclipse.sirius-673b4de0eeb06cc87c15295bd741a0f465dc4a61.tar.gz org.eclipse.sirius-673b4de0eeb06cc87c15295bd741a0f465dc4a61.tar.xz org.eclipse.sirius-673b4de0eeb06cc87c15295bd741a0f465dc4a61.zip | |
[496466] Fix TabBarTest test
Since "Paste Format" action is become a drop down menu, several tests of
this class must be adapted.
Bug: 496466
Change-Id: If01aefc06cbf8bdf3f5f959b2f4930a68552690f
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.java | 8 |
1 files changed, 4 insertions, 4 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 ad557a722f..6ce4959876 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 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2015 THALES GLOBAL SERVICES and others. + * Copyright (c) 2010, 2016 THALES GLOBAL SERVICES and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -88,10 +88,10 @@ public class TabBarTest extends AbstractSiriusSwtBotGefTestCase { private static final String FILE_DIR = "/"; - private static final String[] DIAGRAM_TOOLBARDROPDOWNBUTTONS_TOOLTIPS = { "Arrange All", "Select &All", "Layers", "Filters" }; + private static final String[] DIAGRAM_TOOLBARDROPDOWNBUTTONS_TOOLTIPS = { "Arrange All", "Select &All", "Layers", "Filters", Messages.PasteFormatAction_toolTipText }; private static final String[] DIAGRAM_TOOLBARBUTTONS_TOOLTIPS = { Messages.SiriusDiagramActionBarContributor_refreshDiagram, Messages.SelectHiddenElementsAction_tooltip, - Messages.SelectPinnedElementsAction_tooltip, Messages.PasteFormatAction_toolTipText, "Zoom In (Ctrl+=)", "Zoom Out (Ctrl+-)", Messages.SaveAsImageFileAction_label }; + Messages.SelectPinnedElementsAction_tooltip, "Zoom In (Ctrl+=)", "Zoom Out (Ctrl+-)", Messages.SaveAsImageFileAction_label }; private static final String[] DIAGRAM_TOOLBARTOGGLEBUTTONS_TOOLTIPS = { Messages.LayoutingModeSwitchingAction_activate }; @@ -514,7 +514,7 @@ public class TabBarTest extends AbstractSiriusSwtBotGefTestCase { for (int i = 0; i < diagramSelectedTabbarButtons.size(); i++) { String expectedTooltip = diagramSelectedTabbarButtons.get(i); SWTBotToolbarButton button = editor.bot().toolbarButton(i); - if (i == 4) { + if (i == 3) { final String zoomIn = "Zoom In (Ctrl+"; assertTrue("The toolbarButton index " + i + " does not have the expected tooltip, it does not starts with" + zoomIn, editor.bot().toolbarButton(i).getToolTipText().startsWith(zoomIn)); } else { |
