Skip to content

Commit

Permalink
refactored formatting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Chen committed Jun 17, 2021
1 parent 80a6263 commit 59c4038
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2930,7 +2930,10 @@ public void testClosingBracketNewLine() throws BadLocationException {
settings.getFormattingSettings().setSplitAttributesIndentSize(0);
settings.getFormattingSettings().setClosingBracketNewLine(true);
String content = "<a b='' c=''/>";
String expected = "<a" + lineSeparator() + "b=''" + lineSeparator() + "c=''" + lineSeparator() + "/>";
String expected = "<a" + lineSeparator() +
"b=''" + lineSeparator() +
"c=''" + lineSeparator() +
"/>";
assertFormat(content, expected, settings);
}

Expand Down Expand Up @@ -2962,7 +2965,9 @@ public void testClosingBracketNewLineWithPreserveEmptyContent() throws BadLocati
settings.getFormattingSettings().setSplitAttributesIndentSize(0);
settings.getFormattingSettings().setPreserveEmptyContent(true);
settings.getFormattingSettings().setClosingBracketNewLine(true);
String content = "<a>" + lineSeparator() + "<b c='' d=''></b>" + lineSeparator() + "</a>";
String content = "<a>" + lineSeparator() +
"<b c='' d=''></b>" + lineSeparator() +
"</a>";
String expected = "<a>" + lineSeparator() +
" <b" + lineSeparator() +
" c=''" + lineSeparator() +
Expand Down

0 comments on commit 59c4038

Please sign in to comment.