From 87b5fca0943f42ddc8d12f87cb080830495f61a6 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Wed, 8 Aug 2018 13:03:54 +0300 Subject: [PATCH] Fix test for "Suppress unused if annotated" Quick-fix test was changed in 182 branch, so I have to introduce bunch files for 181/173/AS here --- .../quickfix/unusedSuppressAnnotation/notForDeprecated.kt | 2 +- .../quickfix/unusedSuppressAnnotation/notForJava.kt | 2 +- .../quickfix/unusedSuppressAnnotation/notForJetBrains.kt | 2 +- idea/testData/quickfix/unusedSuppressAnnotation/simple.kt | 2 +- .../quickfix/unusedSuppressAnnotation/simple.kt.173 | 7 +++++++ .../quickfix/unusedSuppressAnnotation/simple.kt.181 | 7 +++++++ .../quickfix/unusedSuppressAnnotation/simple.kt.after | 2 +- .../quickfix/unusedSuppressAnnotation/simple.kt.after.173 | 7 +++++++ .../quickfix/unusedSuppressAnnotation/simple.kt.after.181 | 7 +++++++ .../quickfix/unusedSuppressAnnotation/simple.kt.after.as31 | 7 +++++++ .../quickfix/unusedSuppressAnnotation/simple.kt.after.as32 | 7 +++++++ .../quickfix/unusedSuppressAnnotation/simple.kt.as31 | 7 +++++++ .../quickfix/unusedSuppressAnnotation/simple.kt.as32 | 7 +++++++ 13 files changed, 61 insertions(+), 5 deletions(-) create mode 100644 idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.173 create mode 100644 idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.181 create mode 100644 idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.173 create mode 100644 idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.181 create mode 100644 idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.as31 create mode 100644 idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.as32 create mode 100644 idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.as31 create mode 100644 idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.as32 diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/notForDeprecated.kt b/idea/testData/quickfix/unusedSuppressAnnotation/notForDeprecated.kt index 214e2556cd7..f41803ad2e8 100644 --- a/idea/testData/quickfix/unusedSuppressAnnotation/notForDeprecated.kt +++ b/idea/testData/quickfix/unusedSuppressAnnotation/notForDeprecated.kt @@ -1,4 +1,4 @@ -// "Suppress for declarations annotated by 'kotlin.Deprecated'" "false" +// "Suppress unused warning if annotated by 'kotlin.Deprecated'" "false" // ACTION: Create test @Deprecated("") fun foo(){} diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/notForJava.kt b/idea/testData/quickfix/unusedSuppressAnnotation/notForJava.kt index 07e49b7298d..2a148cd22aa 100644 --- a/idea/testData/quickfix/unusedSuppressAnnotation/notForJava.kt +++ b/idea/testData/quickfix/unusedSuppressAnnotation/notForJava.kt @@ -1,4 +1,4 @@ -// "Suppress for declarations annotated by 'java.lang.SuppressWarnings'" "false" +// "Suppress unused warning if annotated by 'java.lang.SuppressWarnings'" "false" // ACTION: Safe delete 'Unused' // ACTION: Create test // ACTION: Rename file to Unused.kt diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/notForJetBrains.kt b/idea/testData/quickfix/unusedSuppressAnnotation/notForJetBrains.kt index dfcca8efce2..71d731b4231 100644 --- a/idea/testData/quickfix/unusedSuppressAnnotation/notForJetBrains.kt +++ b/idea/testData/quickfix/unusedSuppressAnnotation/notForJetBrains.kt @@ -1,4 +1,4 @@ -// "Suppress for declarations annotated by 'org.jetbrains.annotations.NonNls'" "false" +// "Suppress unused warning if annotated by 'org.jetbrains.annotations.NonNls'" "false" // ACTION: Safe delete 'foo' // ACTION: Create test import org.jetbrains.annotations.NonNls diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt index 70b02417c61..7d377aab852 100644 --- a/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt +++ b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt @@ -1,4 +1,4 @@ -// "Suppress for declarations annotated by 'xxx.XXX'" "true" +// "Suppress unused warning if annotated by 'xxx.XXX'" "true" package xxx annotation class XXX diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.173 b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.173 new file mode 100644 index 00000000000..70b02417c61 --- /dev/null +++ b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.173 @@ -0,0 +1,7 @@ +// "Suppress for declarations annotated by 'xxx.XXX'" "true" +package xxx + +annotation class XXX + +@XXX +class UnusedClass diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.181 b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.181 new file mode 100644 index 00000000000..70b02417c61 --- /dev/null +++ b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.181 @@ -0,0 +1,7 @@ +// "Suppress for declarations annotated by 'xxx.XXX'" "true" +package xxx + +annotation class XXX + +@XXX +class UnusedClass diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after index 70b02417c61..7d377aab852 100644 --- a/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after +++ b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after @@ -1,4 +1,4 @@ -// "Suppress for declarations annotated by 'xxx.XXX'" "true" +// "Suppress unused warning if annotated by 'xxx.XXX'" "true" package xxx annotation class XXX diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.173 b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.173 new file mode 100644 index 00000000000..70b02417c61 --- /dev/null +++ b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.173 @@ -0,0 +1,7 @@ +// "Suppress for declarations annotated by 'xxx.XXX'" "true" +package xxx + +annotation class XXX + +@XXX +class UnusedClass diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.181 b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.181 new file mode 100644 index 00000000000..70b02417c61 --- /dev/null +++ b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.181 @@ -0,0 +1,7 @@ +// "Suppress for declarations annotated by 'xxx.XXX'" "true" +package xxx + +annotation class XXX + +@XXX +class UnusedClass diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.as31 b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.as31 new file mode 100644 index 00000000000..70b02417c61 --- /dev/null +++ b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.as31 @@ -0,0 +1,7 @@ +// "Suppress for declarations annotated by 'xxx.XXX'" "true" +package xxx + +annotation class XXX + +@XXX +class UnusedClass diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.as32 b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.as32 new file mode 100644 index 00000000000..70b02417c61 --- /dev/null +++ b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.after.as32 @@ -0,0 +1,7 @@ +// "Suppress for declarations annotated by 'xxx.XXX'" "true" +package xxx + +annotation class XXX + +@XXX +class UnusedClass diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.as31 b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.as31 new file mode 100644 index 00000000000..70b02417c61 --- /dev/null +++ b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.as31 @@ -0,0 +1,7 @@ +// "Suppress for declarations annotated by 'xxx.XXX'" "true" +package xxx + +annotation class XXX + +@XXX +class UnusedClass diff --git a/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.as32 b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.as32 new file mode 100644 index 00000000000..70b02417c61 --- /dev/null +++ b/idea/testData/quickfix/unusedSuppressAnnotation/simple.kt.as32 @@ -0,0 +1,7 @@ +// "Suppress for declarations annotated by 'xxx.XXX'" "true" +package xxx + +annotation class XXX + +@XXX +class UnusedClass