Use dialog wrapper for controlling behaviour from tests
Known issue: can't use same approach for modifying Java dialogs behaviour
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtNamedFunction
|
||||
// CHECK_SUPER_METHODS_YES_NO_DIALOG: no
|
||||
// OPTIONS: usages
|
||||
// FIND_BY_REF
|
||||
|
||||
class A(val n: Int) {
|
||||
fun foo(a: A) = a <caret>== this
|
||||
|
||||
override override fun equals(other: Any?): Boolean = TODO()
|
||||
override infix fun equals(other: Any?): Boolean = TODO()
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Function call 13 A(0) == A(1)
|
||||
Function call 14 A(0) != A(1)
|
||||
Function call 15 A(0) equals A(1)
|
||||
Function call 6 fun foo(a: A) = a == this
|
||||
Function call 14 A(0) == A(1)
|
||||
Function call 15 A(0) != A(1)
|
||||
Function call 16 A(0) equals A(1)
|
||||
Function call 7 fun foo(a: A) = a == this
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtNamedFunction
|
||||
// CHECK_SUPER_METHODS_YES_NO_DIALOG: no
|
||||
// OPTIONS: usages, skipImports
|
||||
// HIGHLIGHTING
|
||||
|
||||
|
||||
+3
-3
@@ -1,3 +1,3 @@
|
||||
Function call 14 i.foo()
|
||||
Function call 15 A().foo()
|
||||
Function call 16 B().foo()
|
||||
Function call 15 i.foo()
|
||||
Function call 16 A().foo()
|
||||
Function call 17 B().foo()
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtProperty
|
||||
// CHECK_SUPER_METHODS_YES_NO_DIALOG: no
|
||||
// OPTIONS: usages
|
||||
open class A {
|
||||
open var p: Int = 1
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
[javaPropertyUsagesKJK.0.kt] Value read 25 val t = B().p
|
||||
[javaPropertyUsagesKJK.0.kt] Value write 26 B().p = 1
|
||||
[javaPropertyUsagesKJK.0.kt] Value read 26 val t = B().p
|
||||
[javaPropertyUsagesKJK.0.kt] Value write 27 B().p = 1
|
||||
[javaPropertyUsagesKJK.1.java] Unclassified usage 24 new B().getP();
|
||||
[javaPropertyUsagesKJK.1.java] Unclassified usage 25 new B().setP(1);
|
||||
[javaPropertyUsagesKJK.1.java] Unclassified usage 25 new B().setP(1);
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtProperty
|
||||
// CHECK_SUPER_METHODS_YES_NO_DIALOG: no
|
||||
// OPTIONS: usages
|
||||
open class A {
|
||||
open var p: Int = 1
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
[javaPropertyUsagesKK.0.kt] Value read 19 val t = AA().p
|
||||
[javaPropertyUsagesKK.0.kt] Value write 20 AA().p = 1
|
||||
[javaPropertyUsagesKK.0.kt] Value read 20 val t = AA().p
|
||||
[javaPropertyUsagesKK.0.kt] Value write 21 AA().p = 1
|
||||
[javaPropertyUsagesKK.1.java] Unclassified usage 18 new AA().getP();
|
||||
[javaPropertyUsagesKK.1.java] Unclassified usage 19 new AA().setP(1);
|
||||
[javaPropertyUsagesKK.1.java] Unclassified usage 19 new AA().setP(1);
|
||||
Reference in New Issue
Block a user