From f6b4e495fe2df4997a186791e46dd6c84c5f51c5 Mon Sep 17 00:00:00 2001 From: "Maxim.Kolmakov" Date: Thu, 14 Dec 2023 11:58:42 +0100 Subject: [PATCH] Update path to test data GitOrigin-RevId: 80134aa75c36beb9c4cc9699e2ad985a1be05e38 --- .../daemon/HtmlHighlightingPerformanceTest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/htmltools/testSrc/com/intellij/htmltools/codeInsight/daemon/HtmlHighlightingPerformanceTest.java b/plugins/htmltools/testSrc/com/intellij/htmltools/codeInsight/daemon/HtmlHighlightingPerformanceTest.java index 3b150900d429..21aa77be7cd6 100644 --- a/plugins/htmltools/testSrc/com/intellij/htmltools/codeInsight/daemon/HtmlHighlightingPerformanceTest.java +++ b/plugins/htmltools/testSrc/com/intellij/htmltools/codeInsight/daemon/HtmlHighlightingPerformanceTest.java @@ -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)