Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/HoverTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/HoverTest.java b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/HoverTest.java
index 7f7298d20..a92fea669 100644
--- a/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/HoverTest.java
+++ b/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/HoverTest.java
@@ -97,6 +97,13 @@ public class HoverTest extends AbstratGenericEditorTest {
event.doit = true;
event.type = SWT.Selection;
link.notifyListeners(SWT.Selection, event);
+ final IMarker m = marker;
+ new DisplayHelper() {
+ @Override
+ protected boolean condition() {
+ return !m.exists();
+ }
+ }.waitForCondition(event.display, 1000);
assertFalse(marker.exists());
} finally {
if (marker != null && marker.exists()) {

Back to the top