FIx tests after renaming platform to header.

This commit is contained in:
Stanislav Erokhin
2016-12-13 23:08:47 +03:00
parent bd74ef4536
commit 653d589f98
13 changed files with 57 additions and 59 deletions
@@ -3,5 +3,5 @@ open class Foo {
p<caret> val foo = 1
}
// EXIST: private, public, protected, platform
// EXIST: private, public, protected
// NOTHING_ELSE
@@ -5,5 +5,4 @@ p<caret>
// EXIST: package
// EXIST: private
// EXIST: public
// EXIST: header
// NOTHING_ELSE
@@ -63,7 +63,7 @@ class KtFileLightClassTest : KotlinLightCodeInsightFixtureTestCase() {
}
fun testNoFacadeForHeaderClass() {
val file = myFixture.configureByText("foo.kt", "platform fun foo(): Int") as KtFile
val file = myFixture.configureByText("foo.kt", "header fun foo(): Int") as KtFile
assertEquals(0, file.classes.size)
val facadeFiles = LightClassGenerationSupport.getInstance(project).findFilesForFacade(FqName("foo.FooKt"), GlobalSearchScope.allScope(project))
assertEquals(0, facadeFiles.size)
@@ -97,7 +97,7 @@ class LightClassFromTextTest : KotlinLightCodeInsightFixtureTestCase() {
}
fun testHeaderDeclarations() {
val contextFile = myFixture.configureByText("Header.kt", "platform class Foo\n\nplatform fun foo()\n") as KtFile
val contextFile = myFixture.configureByText("Header.kt", "header class Foo\n\nheader fun foo()\n") as KtFile
val headerClass = contextFile.declarations.single { it is KtClassOrObject }
assertEquals(0, headerClass.toLightElements().size)
val headerFunction = contextFile.declarations.single { it is KtNamedFunction }