try {
IDE.openEditor(activePage, htmlFile);
} catch (PartInitException e) {
}
CompletionProposalInvocationContext context = new CompletionProposalInvocationContext(viewer, 0);
IProgressMonitor monitor = new NullProgressMonitor();
assertEquals(proposal.computeCompletionProposals(context, monitor).size(), 0);
context = new CompletionProposalInvocationContext(viewer, 526);
List<CompletionProposal> proposals = proposal.computeCompletionProposals(context, monitor);
assertEquals(7, proposals.size());
assertEquals("customer", proposals.get(0).getDisplayString());
assertEquals("message", proposals.get(1).getDisplayString());