Quickfix and intention tests refactoring: refer to intention action by class when checking that it's not available (instead of listing all available actions)
This commit is contained in:
+1
-2
@@ -1,5 +1,4 @@
|
||||
// "Import Class" "false"
|
||||
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// KT-3165 Weird stack overflow in IDE
|
||||
// ERROR: Unresolved reference: Bar
|
||||
// ERROR: Unresolved reference: SomeImpossibleName
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import Class" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: some[12]
|
||||
// ERROR: No get method providing array access
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import Class" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
|
||||
package Teting
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Import Class" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
|
||||
// KT-3165 Weird stack overflow in IDE
|
||||
// ERROR: Unresolved reference: Bar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import Class" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: TTT
|
||||
|
||||
class {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import Class" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: TTTTT
|
||||
|
||||
fun () {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import Class" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: TTT
|
||||
|
||||
object {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import Class" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Function 'f' must have a body
|
||||
// ERROR: Unresolved reference: TTT
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import Class" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: TTT
|
||||
|
||||
val : Int
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import Class" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: someFun
|
||||
// ERROR: Unresolved reference: test
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import Class" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: some[12]
|
||||
// ERROR: No get method providing array access
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: externalFun
|
||||
|
||||
package testing
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: externalFun
|
||||
|
||||
package testing
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import Class" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: PrivateClass
|
||||
|
||||
fun test() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: PrivateClass
|
||||
|
||||
fun test() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: SomeTest
|
||||
|
||||
package testing
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: SomeTest
|
||||
|
||||
package testing
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: SomeTest
|
||||
|
||||
package testing
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Import" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: SomeTest
|
||||
|
||||
package testing
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: SomeTest
|
||||
|
||||
package testing
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Import" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: SomeTest
|
||||
|
||||
package testing
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Import" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: SomeTest
|
||||
|
||||
package testing
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Import" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: SomeTest
|
||||
|
||||
package testing
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Import" "false"
|
||||
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
|
||||
// ERROR: Unresolved reference: FooPackage
|
||||
|
||||
package packageClass
|
||||
|
||||
Reference in New Issue
Block a user