diff --git a/tests/org.eclipse.jface.tests/src/org/eclipse/jface/tests/viewers/VirtualLazyTreeViewerTest.java b/tests/org.eclipse.jface.tests/src/org/eclipse/jface/tests/viewers/VirtualLazyTreeViewerTest.java index 3fce9d42cfc..b7eec0ca65d 100644 --- a/tests/org.eclipse.jface.tests/src/org/eclipse/jface/tests/viewers/VirtualLazyTreeViewerTest.java +++ b/tests/org.eclipse.jface.tests/src/org/eclipse/jface/tests/viewers/VirtualLazyTreeViewerTest.java @@ -48,7 +48,8 @@ protected StructuredViewer createViewer(Composite parent) { @Override public void setUp() { super.setUp(); - // process events because the content provider uses an asyncExec to set the item count of the tree + // process events because the content provider uses an asyncExec to set the item + // count of the tree processEvents(); } @@ -240,4 +241,16 @@ public void testWorldChanged() { } super.testWorldChanged(); } + + @Override + public void testContains() { + if (disableTestsBug347491) { + return; + } + if (setDataCalls == 0) { + System.err.println("SWT.SetData is not received. Cancelled test " + testName.getMethodName()); + return; + } + super.testContains(); + } }