move performance test to htmltools, because of js and css inside

This commit is contained in:
Sergey Ignatov
2017-03-31 00:03:51 +03:00
parent 64efefb694
commit 15b8640bba
5 changed files with 7 additions and 10824 deletions
@@ -262,6 +262,13 @@ public class HtmlFormatterTest extends XmlFormatterTestBase {
doTestPerformance("html reformat with range", 5000, null);
}
public void testQuotesReplacementPerformance() throws Exception {
doTestPerformance("Quotes replacement", 1500, (settings)->{
settings.HTML_QUOTE_STYLE = CodeStyleSettings.QuoteStyle.Single;
settings.HTML_ENFORCE_QUOTES = true;
});
}
public void doTestPerformance(@NotNull String message, int expectedTime, OptionsSetup optionsSetup) throws Exception {
CodeStyleSettings settings = new CodeStyleSettings();
if (optionsSetup != null) optionsSetup.setupOptions(settings);
@@ -505,13 +512,6 @@ public class HtmlFormatterTest extends XmlFormatterTestBase {
}
}
public void testQuotesReplacementPerformance() throws Exception {
doTestPerformance("Quotes replacement", 1500, (settings)->{
settings.HTML_QUOTE_STYLE = CodeStyleSettings.QuoteStyle.Single;
settings.HTML_ENFORCE_QUOTES = true;
});
}
public void testWeb18213() {
doTextTest(
"<div class=\"s\">\n" +
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff