-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
There are two tests that were failing in GWTRuntimeTest both when run under
Tycho and from the PDE. Those are both disabled.
There are 15 other failures only when run under Tycho/Surefire, all occurring
when JavaUI.openInEditor() unexpectedly returns a null IEditorPart. After a
couple of hours of printf debugging I found the following:
* Good ICompilationUnit objects are retrieved, backed by good underlying
resources.
* The Platform reports it is initialized, and adding delays and waiting for
jobs to go idle do not fix the problem.
* EditorUtility.getEditorInput(iCompilationUnit) succeeds
* EditorUtility.getEditorDescription returns a type
org.eclipse.jdt.ui.CompilationUnitEditor
I tried both IDE.openEditor() and JavaUI.openInEditor() but never figured out
the missing configuration required to get the tests to succeed, so I updated
the pom.xml file to exclude the following 3 files:
JsniFormattingUtilTest.java
JsniMethodBodyCompletionProposalComputerTest.java
JavaComplilationParticipantTest.java
Original issue reported on code.google.com by tpar...@google.com on 11 Feb 2015 at 7:53