void () { for (Trinity<String, String, String> test : List.of(Trinity.create("<map>|", "area", "|>"), Trinity.create("<head>|", "base", "|>"), Trinity.create("<p>foo|", "br", ">|"), Trinity.create("<table><colgroup>|", "col", "|>"), Trinity.create("|", "embed", "|>"), Trinity.create("<frameset>|", "frame", ">|"), Trinity.create("<p>foo|", "hr", ">|"), Trinity.create("|", "img", " src=\"\"|>"), Trinity.create("|", "input", "|>"), Trinity.create("<head>|", "link", "|>"), Trinity.create("<head>|", "meta", "|>"), Trinity.create("<object>|", "param", " name=\"\" value=\"\"|>"), Trinity.create("<audio>|", "source", "|>"), Trinity.create("<video>|", "track", " src=\"\"|>"), Trinity.create("foo|bar", "wbr", ">|"))) { try { myFixture.configureByText("test.html", "<!doctype html>\n" + test.first.replace("|", "<caret>")); myFixture.type("<"); myFixture.completeBasic(); myFixture.type(test.second + "\n"); myFixture.checkResult("<!doctype html>\n" + test.first.replace("|", "<" + test.second + test.third.replace("|", "<caret>"))); } catch (AssertionError error) { throw (AssertionError)new AssertionError("Failed for " + test.second).initCause(error); } } }