mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix test data path for EditorConfig refactoring and commenter tests
This commit is contained in:
@@ -2,11 +2,12 @@
|
||||
package org.editorconfig.language
|
||||
|
||||
import com.intellij.codeInsight.generation.actions.CommentByLineCommentAction
|
||||
import com.intellij.openapi.application.ex.PathManagerEx
|
||||
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase
|
||||
|
||||
class EditorConfigCommenterTest : LightPlatformCodeInsightFixtureTestCase() {
|
||||
override fun getBasePath() =
|
||||
"/plugins/editorconfig/testSrc/org/editorconfig/language/commenter/"
|
||||
override fun getTestDataPath() =
|
||||
"${PathManagerEx.getCommunityHomePath()}/plugins/editorconfig/testSrc/org/editorconfig/language/commenter/"
|
||||
|
||||
fun testComment() = doTest()
|
||||
fun testUncomment() = doTest()
|
||||
|
||||
+3
-2
@@ -1,13 +1,14 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package org.editorconfig.language.codeinsight
|
||||
|
||||
import com.intellij.openapi.application.ex.PathManagerEx
|
||||
import com.intellij.testFramework.fixtures.CodeInsightTestUtil
|
||||
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase
|
||||
import org.editorconfig.language.codeinsight.refactoring.EditorConfigRenameHandler
|
||||
|
||||
class EditorConfigRefactoringTest : LightPlatformCodeInsightFixtureTestCase() {
|
||||
override fun getBasePath() =
|
||||
"/plugins/editorconfig/testSrc/org/editorconfig/language/codeinsight/refactoring/"
|
||||
override fun getTestDataPath() =
|
||||
"${PathManagerEx.getCommunityHomePath()}/plugins/editorconfig/testSrc/org/editorconfig/language/codeinsight/refactoring/"
|
||||
|
||||
fun testRenameDeclarations() = doInplaceTest("my_rule")
|
||||
fun testRenameReferenceAndDeclarations() = doInplaceTest("my_symbols")
|
||||
|
||||
Reference in New Issue
Block a user