void () { myFixture.configureByText("foo.html", "<div onmouse<caret>"); final String[] expected = {"onmousemove", "onmouseup", "onmouseout", "onmousedown", "onmouseover"}; myFixture.complete(CompletionType.BASIC, 0); assertSameElements(myFixture.getLookupElementStrings(), expected); myFixture.complete(CompletionType.BASIC, 1); assertSameElements(myFixture.getLookupElementStrings(), expected); myFixture.complete(CompletionType.BASIC, 2); assertSameElements(myFixture.getLookupElementStrings(), expected); myFixture.complete(CompletionType.BASIC, 3); assertSameElements(myFixture.getLookupElementStrings(), expected); }