try to force layout
diff --git a/tests/org.eclipse.wst.jsdt.ui.tests/src/org/eclipse/wst/jsdt/ui/tests/EditorTests.java b/tests/org.eclipse.wst.jsdt.ui.tests/src/org/eclipse/wst/jsdt/ui/tests/EditorTests.java
index 58d6a80..7073ff8 100644
--- a/tests/org.eclipse.wst.jsdt.ui.tests/src/org/eclipse/wst/jsdt/ui/tests/EditorTests.java
+++ b/tests/org.eclipse.wst.jsdt.ui.tests/src/org/eclipse/wst/jsdt/ui/tests/EditorTests.java
@@ -56,6 +56,9 @@
 		IDocument document = ((ITextEditor) editor).getDocumentProvider().getDocument(input);

 		assertNotNull("no text document present", document);

 		assertTrue("text document is empty", document.getLength() > 0);

+		

+		PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell().layout(true, true);

+		PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell().redraw();

 

 		PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeEditor(editor, false);

 	}