Check errors and are all actions are expected in quick fixes tests

This commit is contained in:
Nikolay Krasko
2012-12-12 23:53:02 +04:00
parent 07df3dfe85
commit 1f12658ce7
16 changed files with 126 additions and 45 deletions
@@ -1,4 +1,5 @@
// "Import" "true"
// ERROR: Unresolved reference: TestSample
import TestData.TestSample
@@ -1,4 +1,5 @@
// "Import" "true"
// ERROR: Unresolved reference: TestSample
fun test() {
val a = <caret>TestSample
@@ -1,4 +1,5 @@
// "Import" "true"
// ERROR: Unresolved reference: someFun
package testingExtensionFunctionsImport
import testingExtensionFunctionsImport.data.someFun
@@ -1,4 +1,5 @@
// "Import" "true"
// ERROR: Unresolved reference: someFun
package testingExtensionFunctionsImport
fun some() {
@@ -1,4 +1,6 @@
// "Import" "true"
// ERROR: Unresolved reference: someTestFun
package functionimporttest
import functionimporttest.data.someTestFun
@@ -1,4 +1,6 @@
// "Import" "true"
// ERROR: Unresolved reference: someTestFun
package functionimporttest
fun functionImportTest() {
@@ -1,4 +1,5 @@
// "Import Class" "false"
// ERROR: Unresolved reference: PrivateClass
fun test() {
PrivateClass
@@ -1,4 +1,5 @@
// "Import" "false"
// ERROR: Unresolved reference: PrivateClass
fun test() {
<caret>PrivateClass
@@ -1,5 +1,4 @@
// "Import" "false"
// ACTION: Change to constructor invocation
// ERROR: Unresolved reference: SomeTest
package testing
@@ -1,5 +1,4 @@
// "Import" "false"
// ACTION: Change to constructor invocation
// ERROR: Unresolved reference: SomeTest
package testing
@@ -1,5 +1,8 @@
// "Specify return type explicitly" "false"
// ERROR: Function 'foo' without a body must be abstract
// ACTION: Add function body
// ACTION: Make 'foo' abstract
package a
class A() {
@@ -1,4 +1,5 @@
// "Specify type explicitly" "true"
// ERROR: Public or protected member should have specified type
package a
@@ -1,4 +1,5 @@
// "Specify type explicitly" "true"
// ERROR: Public or protected member should have specified type
package a