From 1e5ea703b594ce60f8084323b56202c6c3f4669f Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Wed, 15 Oct 2014 13:18:50 +0400 Subject: [PATCH] Added a test --- .../completion/keywords/PropertyAccessors2.kt | 32 +++++++++++++++++++ .../completion/keywords/PropertySetter.kt | 16 ---------- .../KeywordCompletionTestGenerated.java | 6 ++++ 3 files changed, 38 insertions(+), 16 deletions(-) create mode 100644 idea/testData/completion/keywords/PropertyAccessors2.kt diff --git a/idea/testData/completion/keywords/PropertyAccessors2.kt b/idea/testData/completion/keywords/PropertyAccessors2.kt new file mode 100644 index 00000000000..5fe4b5d8733 --- /dev/null +++ b/idea/testData/completion/keywords/PropertyAccessors2.kt @@ -0,0 +1,32 @@ +class Some { + var a : Int = 1 + +} + +// EXIST: abstract +// EXIST: annotation +// EXIST: as +// EXIST: class +// EXIST: enum +// EXIST: final +// EXIST: fun +// EXIST: get +// EXIST: in +/*why?*/ +// EXIST: inner +// EXIST: internal +// EXIST: object +// EXIST: open +// EXIST: out +/*why?*/ +// EXIST: override +// EXIST: private +// EXIST: protected +// EXIST: public +// EXIST: set +// EXIST: trait +// EXIST: val +// EXIST: var +// EXIST: vararg +/*why?*/ +// NUMBER: 23 diff --git a/idea/testData/completion/keywords/PropertySetter.kt b/idea/testData/completion/keywords/PropertySetter.kt index 0e4f6f69bd7..e2a2e090099 100644 --- a/idea/testData/completion/keywords/PropertySetter.kt +++ b/idea/testData/completion/keywords/PropertySetter.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2010-2014 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - class Some { var a : Int get() = 0 diff --git a/idea/tests/org/jetbrains/jet/completion/KeywordCompletionTestGenerated.java b/idea/tests/org/jetbrains/jet/completion/KeywordCompletionTestGenerated.java index e4698fd4a91..32e94007811 100644 --- a/idea/tests/org/jetbrains/jet/completion/KeywordCompletionTestGenerated.java +++ b/idea/tests/org/jetbrains/jet/completion/KeywordCompletionTestGenerated.java @@ -250,6 +250,12 @@ public class KeywordCompletionTestGenerated extends AbstractKeywordCompletionTes doTest(fileName); } + @TestMetadata("PropertyAccessors2.kt") + public void testPropertyAccessors2() throws Exception { + String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/keywords/PropertyAccessors2.kt"); + doTest(fileName); + } + @TestMetadata("PropertySetter.kt") public void testPropertySetter() throws Exception { String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/keywords/PropertySetter.kt");