From 7d3229538ec34d1eb8c4d6ae2231ecc68146c387 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Thu, 24 Mar 2016 17:40:11 +0300 Subject: [PATCH] One more test --- .../testData/smart/propertyDelegate/DelegatesDot.kt | 10 ++++++++++ .../test/JvmSmartCompletionTestGenerated.java | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 idea/idea-completion/testData/smart/propertyDelegate/DelegatesDot.kt diff --git a/idea/idea-completion/testData/smart/propertyDelegate/DelegatesDot.kt b/idea/idea-completion/testData/smart/propertyDelegate/DelegatesDot.kt new file mode 100644 index 00000000000..bb4fba923a3 --- /dev/null +++ b/idea/idea-completion/testData/smart/propertyDelegate/DelegatesDot.kt @@ -0,0 +1,10 @@ +import kotlin.properties.Delegates + +class C { + val v by Delegates. +} + +// EXIST: notNull +// EXIST: observable +// EXIST: vetoable +// NOTHING_ELSE diff --git a/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/JvmSmartCompletionTestGenerated.java b/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/JvmSmartCompletionTestGenerated.java index 0850d39c4ee..fac57ff3091 100644 --- a/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/JvmSmartCompletionTestGenerated.java +++ b/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/JvmSmartCompletionTestGenerated.java @@ -1444,6 +1444,12 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/idea-completion/testData/smart/propertyDelegate"), Pattern.compile("^(.+)\\.kt$"), true); } + @TestMetadata("DelegatesDot.kt") + public void testDelegatesDot() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smart/propertyDelegate/DelegatesDot.kt"); + doTest(fileName); + } + @TestMetadata("ExplicitValType.kt") public void testExplicitValType() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/smart/propertyDelegate/ExplicitValType.kt");