void () { doTestPopup(HtmlFileType.INSTANCE, "<div><caret></div>", "the&n"); myFixture.type("bs\n"); myFixture.type("foo&st"); type("a"); myFixture.type("\n"); myFixture.checkResult("<div>the&nbsp;foo&star;</div>"); }