Simplify "Find Usages" test data, Move configuration options to test files

This commit is contained in:
Alexey Sedunov
2013-08-12 18:40:45 +04:00
parent 76c81aa3f0
commit 497d3c6706
54 changed files with 300 additions and 169 deletions
@@ -0,0 +1,5 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetClass
package testing
class <caret>Server() {
}
@@ -1,4 +0,0 @@
package testing;
class <caret>Server() {
}
@@ -1,3 +1,4 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetClass
package server
open class <caret>Server {
@@ -1,3 +1,4 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetClass
package server
annotation class <caret>X(val x: String)
@@ -0,0 +1,4 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetClass
package server
data class <caret>Data
@@ -1,3 +0,0 @@
package server
data class <caret>Data
@@ -1,3 +1,4 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetNamedFunction
// OPTIONS: overrides
open class A<T> {
open fun <caret>foo(t: T) {
@@ -0,0 +1,2 @@
Unclassified usage (29: 18) override fun foo(t: String) {
Unclassified usage (3: 17) public void foo(String s) {
@@ -1,2 +0,0 @@
Unclassified usage (28: 18) override fun foo(t: String) {
Unclassified usage (3: 17) public void foo(String s) {
@@ -1,3 +1,4 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetNamedFunction
// OPTIONS: usages
package testing;
@@ -1,6 +0,0 @@
Function call (10: 7) x.foo(1, 2)
Function call (11: 11) a.foo(0, "")
Function call (24: 5) foo(t)
Function call (29: 7) a.foo(1, "")
Function call (34: 9) foo(t)
Function call (3: 18) super<A>.foo(t)
@@ -1,3 +1,4 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetNamedFunction
// OPTIONS: usages
package server;
@@ -1,3 +1,4 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetNamedFunction
// OPTIONS: overloadUsages
trait X<T> {
}
@@ -0,0 +1,6 @@
Function call (11: 11) a.foo(0, "")
Function call (11: 7) x.foo(1, 2)
Function call (25: 5) foo(t)
Function call (30: 7) a.foo(1, "")
Function call (35: 9) foo(t)
Function call (3: 18) super<A>.foo(t)
@@ -0,0 +1,7 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetObjectDeclarationName
package server;
object <caret>O {
var foo: String = "foo"
}
@@ -1,6 +0,0 @@
package server;
object <caret>O {
var foo: String = "foo"
}
@@ -0,0 +1,7 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetObjectDeclarationName
package server;
object <caret>O {
var foo: String = "foo"
}
@@ -1,6 +0,0 @@
package server;
object <caret>O {
var foo: String = "foo"
}
@@ -1,3 +1,4 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetProperty
package server;
object O {
@@ -0,0 +1,5 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetProperty
package server;
var <caret>foo: String = "foo"
@@ -1,4 +0,0 @@
package server;
var <caret>foo: String = "foo"
@@ -1,3 +0,0 @@
package testing
public class <caret>Test
@@ -0,0 +1,6 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetClass
// FILTERING_RULES: org.jetbrains.jet.plugin.findUsages.JetImportFilteringRule
package testing
public class <caret>Test
@@ -1,3 +0,0 @@
open class <caret>Foo {
vv open val foo = 1
}
@@ -0,0 +1,4 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetClass
open class <caret>Foo {
vv open val foo = 1
}