mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
Update path to test data
GitOrigin-RevId: 80134aa75c36beb9c4cc9699e2ad985a1be05e38
This commit is contained in:
committed by
intellij-monorepo-bot
parent
253c44b6d6
commit
f6b4e495fe
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user