Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickael Istria2016-02-03 17:12:31 +0000
committerMickael Istria2016-02-05 15:21:45 +0000
commit1de9e3bf88bd2e6c53fd9c8377c3dbc65b693873 (patch)
tree03b87410feb750d44b6edf4c8cd0dcca6e963564 /org.eclipse.ui.editors.tests/src
parent06c10aa641340fe3a50df7860c44803aa412b019 (diff)
downloadeclipse.platform.text-1de9e3bf88bd2e6c53fd9c8377c3dbc65b693873.tar.gz
eclipse.platform.text-1de9e3bf88bd2e6c53fd9c8377c3dbc65b693873.tar.xz
eclipse.platform.text-1de9e3bf88bd2e6c53fd9c8377c3dbc65b693873.zip
Bug 487152 - ZoomTest leaks open editor
Change-Id: I8301639372e26959bf3a6cc9059a84c5ba83071a Signed-off-by: Mickael Istria <mistria@redhat.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.java7
1 files changed, 7 insertions, 0 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 63733e06f..6167d9e73 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
@@ -81,6 +81,13 @@ public class ZoomTest {
// make sure we start from a clean state
initialFontSize = text.getFont().getFontData()[0].getHeight();
}
+
+ @Override
+ public void tearDown() throws Exception {
+ super.tearDown();
+ editor.close(false);
+ editor= null;
+ }
@Test
public void testZoomCommand() throws Exception {

Back to the top