From a7a91506ba2c7db4a401fe813371dbe40398a663 Mon Sep 17 00:00:00 2001 From: Yuriy Artamonov Date: Fri, 3 May 2024 15:16:40 +0200 Subject: [PATCH] [tests] IJPL-148944 Enable isIconRequired in tests GitOrigin-RevId: c15b2e5e2ac70f21371cd610a666ad8d87e52053 --- json/tests/test/com/intellij/json/JsonIconsAstLoadingTest.kt | 2 ++ .../yaml/testSrc/org/jetbrains/yaml/YamlIconsAstLoadingTest.kt | 2 ++ .../tests/com/intellij/util/xml/XmlIconsAstLoadingTest.kt | 2 ++ 3 files changed, 6 insertions(+) diff --git a/json/tests/test/com/intellij/json/JsonIconsAstLoadingTest.kt b/json/tests/test/com/intellij/json/JsonIconsAstLoadingTest.kt index 405e1a31a784..3769fd64173a 100644 --- a/json/tests/test/com/intellij/json/JsonIconsAstLoadingTest.kt +++ b/json/tests/test/com/intellij/json/JsonIconsAstLoadingTest.kt @@ -16,6 +16,8 @@ class JsonIconsAstLoadingTest : BasePlatformTestCase() { Registry.get("ast.loading.filter").setValue(true, testRootDisposable); } + override fun isIconRequired(): Boolean = true + /** * If this test fails for your [com.intellij.ide.IconProvider] you MUST avoid loading PSI by either: * - indexing and accessing index instead from [com.intellij.ide.IconProvider]; diff --git a/plugins/yaml/testSrc/org/jetbrains/yaml/YamlIconsAstLoadingTest.kt b/plugins/yaml/testSrc/org/jetbrains/yaml/YamlIconsAstLoadingTest.kt index a8d04bec6255..fac13802d19a 100644 --- a/plugins/yaml/testSrc/org/jetbrains/yaml/YamlIconsAstLoadingTest.kt +++ b/plugins/yaml/testSrc/org/jetbrains/yaml/YamlIconsAstLoadingTest.kt @@ -16,6 +16,8 @@ class YamlIconsAstLoadingTest : BasePlatformTestCase() { Registry.get("ast.loading.filter").setValue(true, testRootDisposable); } + override fun isIconRequired(): Boolean = true + /** * If this test fails for your [com.intellij.ide.IconProvider] you MUST avoid loading PSI by either: * - indexing and accessing index instead from [com.intellij.ide.IconProvider]; diff --git a/xml/dom-tests/tests/com/intellij/util/xml/XmlIconsAstLoadingTest.kt b/xml/dom-tests/tests/com/intellij/util/xml/XmlIconsAstLoadingTest.kt index e32733b9ec15..a7fb70170343 100644 --- a/xml/dom-tests/tests/com/intellij/util/xml/XmlIconsAstLoadingTest.kt +++ b/xml/dom-tests/tests/com/intellij/util/xml/XmlIconsAstLoadingTest.kt @@ -16,6 +16,8 @@ class XmlIconsAstLoadingTest : BasePlatformTestCase() { Registry.get("ast.loading.filter").setValue(true, testRootDisposable); } + override fun isIconRequired(): Boolean = true + /** * If this test fails for your [com.intellij.ide.IconProvider] you MUST avoid loading PSI by either: * - indexing and accessing index instead from [com.intellij.ide.IconProvider];