Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-06-17 09:19:57 +0000
committerLars Vogel2019-06-17 09:39:10 +0000
commit8def8098992f4ea0f6dd016a0d2d5c2c6b7a814f (patch)
tree5c19ae70a25ec84beba49bdda67e5c69870db69a /org.eclipse.ui.editors.tests/src
parent925e3c83512b8467fdbfc8ebb45819c82c18be01 (diff)
downloadeclipse.platform.text-8def8098992f4ea0f6dd016a0d2d5c2c6b7a814f.tar.gz
eclipse.platform.text-8def8098992f4ea0f6dd016a0d2d5c2c6b7a814f.tar.xz
eclipse.platform.text-8def8098992f4ea0f6dd016a0d2d5c2c6b7a814f.zip
Remove redundant block
Change-Id: I01d785405a51605a19429bcd9560232530fc51c1 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.ui.editors.tests/src')
-rw-r--r--org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/ZoomTest.java24
1 files changed, 10 insertions, 14 deletions
diff --git a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/ZoomTest.java b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/ZoomTest.java
index bd4c2b20e..41db9115a 100644
--- a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/ZoomTest.java
+++ b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/ZoomTest.java
@@ -96,22 +96,18 @@ public class ZoomTest {
@Test
public void testZoomCommand() throws Exception {
int times = 6;
- {
- Command zoomInCommand = PlatformUI.getWorkbench().getService(ICommandService.class)
- .getCommand("org.eclipse.ui.edit.text.zoomIn");
- for (int i = 0; i < times; i++) {
- zoomInCommand.executeWithChecks(new ExecutionEvent(zoomInCommand, Collections.EMPTY_MAP, null, null));
- }
- Assert.assertEquals(this.initialFontSize + 12, text.getFont().getFontData()[0].getHeight());
+ Command zoomInCommand = PlatformUI.getWorkbench().getService(ICommandService.class)
+ .getCommand("org.eclipse.ui.edit.text.zoomIn");
+ for (int i = 0; i < times; i++) {
+ zoomInCommand.executeWithChecks(new ExecutionEvent(zoomInCommand, Collections.EMPTY_MAP, null, null));
}
- {
- Command zoomOutCommand = PlatformUI.getWorkbench().getService(ICommandService.class)
- .getCommand("org.eclipse.ui.edit.text.zoomOut");
- for (int i = 0; i < times; i++) {
- zoomOutCommand.executeWithChecks(new ExecutionEvent(zoomOutCommand, Collections.EMPTY_MAP, null, null));
- }
- Assert.assertEquals(this.initialFontSize, text.getFont().getFontData()[0].getHeight());
+ Assert.assertEquals(this.initialFontSize + 12, text.getFont().getFontData()[0].getHeight());
+ Command zoomOutCommand = PlatformUI.getWorkbench().getService(ICommandService.class)
+ .getCommand("org.eclipse.ui.edit.text.zoomOut");
+ for (int i = 0; i < times; i++) {
+ zoomOutCommand.executeWithChecks(new ExecutionEvent(zoomOutCommand, Collections.EMPTY_MAP, null, null));
}
+ Assert.assertEquals(this.initialFontSize, text.getFont().getFontData()[0].getHeight());
}
}

Back to the top