Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickael Istria2017-05-16 01:32:57 -0400
committerMickael Istria2017-05-16 04:02:55 -0400
commit09a62775abf126886acce66c5aec7c378c73fdd8 (patch)
treeadbefd00d96d9038f600c0e3837ff188a9ea2d4b
parentb4e4d5e46f0adcedd9ee169c7689d846f43ba900 (diff)
downloadeclipse.platform.text-09a62775abf126886acce66c5aec7c378c73fdd8.tar.gz
eclipse.platform.text-09a62775abf126886acce66c5aec7c378c73fdd8.tar.xz
eclipse.platform.text-09a62775abf126886acce66c5aec7c378c73fdd8.zip
Bug 505842 - Test failues in HoverTest
Better handle some more places for async Change-Id: I5714b25fa2cc71e2a896c6b3a9a3f4be6fc7e539 Signed-off-by: Mickael Istria <mistria@redhat.com>
-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