Skip to content

Commit

Permalink
fix testCompleteActivationChar to not fail other test eclipse-platfor…
Browse files Browse the repository at this point in the history
…m#75

testSyncFailureNPE failed because of late event handling
  • Loading branch information
EcljpseB0T authored and jukzi committed Oct 4, 2022
1 parent f36e094 commit 77b4eee
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ public void testCompleteActivationChar() {
display.timerExec(200, new Runnable() {
@Override
public void run() {
if (control.isDisposed()) {
// https://github.com/eclipse-platform/eclipse.platform.text/issues/75#issuecomment-1263429480
return; // do not fail other unit tests
}
control.forceFocus();
keyEvent.widget= control;
keyEvent.type= SWT.KeyDown;
Expand Down

0 comments on commit 77b4eee

Please sign in to comment.