Update path to test data

GitOrigin-RevId: 80134aa75c36beb9c4cc9699e2ad985a1be05e38
This commit is contained in:
Maxim.Kolmakov
2023-12-14 11:58:42 +01:00
committed by intellij-monorepo-bot
parent 253c44b6d6
commit f6b4e495fe

View File

@@ -4,6 +4,7 @@ import com.intellij.codeInspection.htmlInspections.*;
import com.intellij.htmltools.codeInspection.htmlInspections.HtmlDeprecatedTagInspection;
import com.intellij.htmltools.codeInspection.htmlInspections.HtmlPresentationalElementInspection;
import com.intellij.lang.annotation.HighlightSeverity;
import com.intellij.openapi.application.PathManager;
import com.intellij.testFramework.PlatformTestUtil;
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
import com.intellij.xml.util.CheckXmlFileWithXercesValidatorInspection;
@@ -13,8 +14,8 @@ import com.intellij.xml.util.XmlInvalidIdInspection;
public class HtmlHighlightingPerformanceTest extends BasePlatformTestCase {
@Override
protected String getBasePath() {
return "testData/codeInsight/daemonCodeAnalyzer/html";
public String getTestDataPath() {
return PathManager.getCommunityHomePath() + "/plugins/htmltools/testData/highlighting";
}
@Override
@@ -35,7 +36,7 @@ public class HtmlHighlightingPerformanceTest extends BasePlatformTestCase {
}
public void testPerformance2() {
myFixture.configureByFiles(getTestName(false) + ".html", "/manual.css");
myFixture.configureByFiles(getTestName(false) + ".html", "manual.css");
PlatformTestUtil.startPerformanceTest("HTML Highlighting 2", 5_500, () -> doTest())
.usesAllCPUCores()
.warmupIterations(1)
@@ -43,7 +44,7 @@ public class HtmlHighlightingPerformanceTest extends BasePlatformTestCase {
}
public void testPerformance() {
myFixture.configureByFiles(getTestName(false) + ".html", "/stylesheet.css");
myFixture.configureByFiles(getTestName(false) + ".html", "stylesheet.css");
PlatformTestUtil.startPerformanceTest("HTML Highlighting", 8_000, () -> doTest())
.usesAllCPUCores()
.warmupIterations(1)