Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Porhel2015-04-01 13:51:25 +0000
committerMaxime Porhel2015-04-01 14:58:27 +0000
commitc1dfa2d996d705550b55b8c32c332643a3997f49 (patch)
tree9eb4b16cda104c14973297a797ced18fa6727a19
parent0dc80429ca6441c5d8ed394d35db58dd99ecc3ed (diff)
downloadorg.eclipse.sirius-c1dfa2d996d705550b55b8c32c332643a3997f49.tar.gz
org.eclipse.sirius-c1dfa2d996d705550b55b8c32c332643a3997f49.tar.xz
org.eclipse.sirius-c1dfa2d996d705550b55b8c32c332643a3997f49.zip
[463669] Modify DiagramPrintTest to use the print menu
In Mars M6, the print button is no more added to the toolbar by default. Bug: 463669 Change-Id: Ica67aa7e0278d839fb41a0a08b3a3cb2d76ab550 Signed-off-by: Maxime Porhel <maxime.porhel@obeo.fr>
-rw-r--r--plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/DiagramPrintTest.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/DiagramPrintTest.java b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/DiagramPrintTest.java
index 0873bb4365..7921b84d58 100644
--- a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/DiagramPrintTest.java
+++ b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/DiagramPrintTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2014 THALES GLOBAL SERVICES.
+ * Copyright (c) 2014, 2015 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
@@ -17,7 +17,6 @@ import org.eclipse.sirius.tests.swtbot.support.api.editor.SWTBotSiriusDiagramEdi
import org.eclipse.sirius.tests.swtbot.support.utils.SWTBotUtils;
import org.eclipse.swtbot.swt.finder.waits.Conditions;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
-import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarButton;
/**
* A test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=447242, i.e. test
@@ -62,8 +61,7 @@ public class DiagramPrintTest extends AbstractSiriusSwtBotGefTestCase {
String expectedPrintDialogTitle = "Print Diagram";
SWTBotUtils.waitAllUiEvents();
editor.setFocus();
- SWTBotToolbarButton printButton = bot.toolbarButtonWithTooltip("Print (Ctrl+P)");
- printButton.click();
+ bot.menu("File").menu("Print...").click();
bot.waitUntil(Conditions.shellIsActive(expectedPrintDialogTitle));
SWTBotShell printShell = bot.activeShell();
assertEquals(expectedPrintDialogTitle, printShell.getText());

Back to the top