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:
Valentin Kipyatkov
2014-01-23 17:00:26 +04:00
parent 3028cec4cd
commit d01ff28212
75 changed files with 99 additions and 136 deletions
@@ -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,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,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,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: FooPackage
package packageClass