Revert "extend test for code cleanup with changing visibility from private to internal for declarations, which are used outside of their file."

This reverts commit 9fd968d59e.
This commit is contained in:
Zalim Bashorov
2015-09-30 22:48:42 +03:00
parent 073b10072a
commit fca9b51548
5 changed files with 1 additions and 26 deletions
-4
View File
@@ -16,10 +16,6 @@ fun foo() {
oldFun2()
ff()
val xx = valX
varX = 50
varY = 60
1.identityEquals(2)
}
-4
View File
@@ -15,10 +15,6 @@ fun foo() {
oldFun2()
ff()
val xx = valX
varX = 50
varY = 60
1 === 2
}
-8
View File
@@ -1,8 +0,0 @@
private fun ff() {}
private val valX = 10
private var varX = 20
var varY = 30
private set(value: Int) {}
-8
View File
@@ -1,8 +0,0 @@
internal fun ff() {}
internal val valX = 10
internal var varX = 20
var varY = 30
internal set(value: Int) {}
@@ -43,10 +43,9 @@ class KotlinCleanupInspectionTest(): JetLightCodeInsightFixtureTestCase() {
globalContext.codeCleanup(project, analysisScope, profile, "Cleanup", null, true)
myFixture.checkResultByFile(result)
myFixture.checkResultByFile("topLevels.kt", "topLevels.kt.after", true)
}
public fun testCleanup() {
doTest("cleanup.kt.after", "cleanup.kt", "topLevels.kt","JavaAnn.java", "deprecatedSymbols.kt")
doTest("cleanup.kt.after", "cleanup.kt", "JavaAnn.java", "deprecatedSymbols.kt")
}
}