More reliable testing of keyword completion (introduced directive "NOTHING_ELSE" instead of "NUMBER")

This commit is contained in:
Valentin Kipyatkov
2015-05-14 17:46:56 +03:00
parent 5807d03a52
commit db40f1ee5a
75 changed files with 113 additions and 80 deletions
@@ -34,4 +34,5 @@ class MouseMovedEventArgs
// EXIST: constructor
// EXIST: init
/*why?*/
// NUMBER: 27
// EXIST: companion
// NOTHING_ELSE: true
@@ -37,4 +37,6 @@ class B {
// EXIST: var
// EXIST: vararg
/*why?*/
// NUMBER: 22
// EXIST: companion
/*TODO*/
// NOTHING_ELSE: true
@@ -37,4 +37,5 @@ class A {
// EXIST: constructor
// EXIST: init
/*why?*/
// NUMBER: 24
// EXIST: companion
// NOTHING_ELSE: true
@@ -3,3 +3,4 @@ class A(x: Int) {
}
// EXIST: this, super
// NOTHING_ELSE: true
@@ -14,4 +14,4 @@ fun foo() {
// EXIST: { lookupString: "break@myDo", itemText: "break", tailText: "@myDo", attributes: "bold" }
// EXIST: { lookupString: "break@myWhile", itemText: "break", tailText: "@myWhile", attributes: "bold" }
// EXIST: { lookupString: "break@myFor", itemText: "break", tailText: "@myFor", attributes: "bold" }
// NUMBER: 3
// NOTHING_ELSE: true
@@ -7,4 +7,4 @@ fun foo() {
// EXIST: as
// EXIST: in
// EXIST: is
// NUMBER: 5
// NOTHING_ELSE: true
@@ -14,4 +14,4 @@ fun foo() {
// EXIST: { lookupString: "continue@myDo", itemText: "continue", tailText: "@myDo", attributes: "bold" }
// EXIST: { lookupString: "continue@myWhile", itemText: "continue", tailText: "@myWhile", attributes: "bold" }
// EXIST: { lookupString: "continue@myFor", itemText: "continue", tailText: "@myFor", attributes: "bold" }
// NUMBER: 3
// NOTHING_ELSE: true
@@ -1,4 +1,4 @@
[<caret>]
// EXIST: file
// NUMBER: 1
// NOTHING_ELSE: true
@@ -37,4 +37,6 @@ var a : Int
// EXIST: var
// EXIST: vararg
/*why?*/
// NUMBER: 25
// EXIST: companion
/*TODO*/
// NOTHING_ELSE: true
@@ -20,4 +20,4 @@ fun foo(p: Int) {
// EXIST: try
// EXIST: when
// EXIST: while
// NUMBER: 15
// NOTHING_ELSE: true
@@ -35,4 +35,5 @@ public class Test {
// EXIST: constructor
// EXIST: init
/*why?*/
// NUMBER: 24
// EXIST: companion
// NOTHING_ELSE: true
@@ -29,4 +29,5 @@ class TestClass {
/*why?*/
// EXIST: constructor
// EXIST: init
// NUMBER: 24
// EXIST: companion
// NOTHING_ELSE: true
@@ -2,4 +2,4 @@ class T<<caret>>
// EXIST: in
// EXIST: out
// NUMBER: 2
// NOTHING_ELSE: true
@@ -21,4 +21,4 @@ fun foo() {
// EXIST: var
// EXIST: when
// EXIST: while
// NUMBER: 19
// NOTHING_ELSE: true
@@ -9,4 +9,4 @@ class C(<caret>)
// EXIST: protected
// EXIST: internal
// EXIST: override
// NUMBER: 8
// NOTHING_ELSE: true
@@ -14,4 +14,4 @@ fun foo() = <caret>
// EXIST: try
// EXIST: when
// EXIST: while
// NUMBER: 14
// NOTHING_ELSE: true
@@ -5,4 +5,4 @@ fun foo() {
/*TODO: Is 'package' type qualifier syntax correct?*/
// EXIST: package
// EXIST: dynamic
// NUMBER: 2
// NOTHING_ELSE: true
@@ -15,4 +15,4 @@ val prop: Int
// EXIST: try
// EXIST: when
// EXIST: while
// NUMBER: 14
// NOTHING_ELSE: true
@@ -10,4 +10,4 @@ class TestSample() {
// EXIST: var
// EXIST: in
// EXIST: out
// NUMBER: 4
// NOTHING_ELSE: true
@@ -4,4 +4,4 @@ open class Foo {
}
// EXIST: private, public, protected
// NUMBER: 3
// NOTHING_ELSE: true
@@ -4,4 +4,4 @@ fun testing() {}
// EXIST: in
// EXIST: out
// NUMBER: 2
// NOTHING_ELSE: true
@@ -15,4 +15,4 @@ fun foo(p: Int = <caret>)
// EXIST: try
// EXIST: when
// EXIST: while
// NUMBER: 15
// NOTHING_ELSE: true
@@ -14,4 +14,4 @@ var a : Int = <caret>
// EXIST: try
// EXIST: when
// EXIST: while
// NUMBER: 14
// NOTHING_ELSE: true
@@ -7,4 +7,4 @@ fun test(<caret>) {
// EXIST: var
// EXIST: in
// EXIST: out
// NUMBER: 4
// NOTHING_ELSE: true
@@ -28,4 +28,6 @@ package Test
// EXIST: var
// EXIST: vararg
/*why?*/
// NUMBER: 23
// EXIST: companion
/*TODO*/
// NOTHING_ELSE: true
@@ -6,4 +6,4 @@ p<caret>
// EXIST: private
// EXIST: protected
// EXIST: public
// NUMBER: 4
// NOTHING_ELSE: true
@@ -33,4 +33,5 @@ class Some {
/*why?*/
// EXIST: constructor
// EXIST: init
// NUMBER: 27
// EXIST: companion
// NOTHING_ELSE: true
@@ -33,4 +33,5 @@ class Some {
/*why?*/
// EXIST: constructor
// EXIST: init
// NUMBER: 27
// EXIST: companion
// NOTHING_ELSE: true
@@ -35,4 +35,5 @@ class Some {
/*why?*/
// EXIST: constructor
// EXIST: init
// NUMBER: 27
// EXIST: companion
// NOTHING_ELSE: true
@@ -10,4 +10,4 @@ class Outer {
// EXIST: { lookupString: "this@foo", itemText: "this", tailText: "@foo", typeText: "String", attributes: "bold" }
// EXIST: { lookupString: "this@Inner", itemText: "this", tailText: "@Inner", typeText: "Outer.Inner", attributes: "bold" }
// EXIST: { lookupString: "this@Outer", itemText: "this", tailText: "@Outer", typeText: "Outer", attributes: "bold" }
// NUMBER: 3
// NOTHING_ELSE: true
@@ -2,4 +2,4 @@ val String.foo: Int
get() = this@<caret>.length()
// EXIST: "this@foo"
// NUMBER: 1
// NOTHING_ELSE: true
@@ -11,4 +11,4 @@ inline fun takeHandler2(handler: () -> Unit){}
// EXIST: { lookupString: "return", itemText: "return", tailText: null, attributes: "bold" }
// EXIST: { lookupString: "return@takeHandler1", itemText: "return", tailText: "@takeHandler1", attributes: "bold" }
// EXIST: { lookupString: "return@takeHandler2", itemText: "return", tailText: "@takeHandler2", attributes: "bold" }
// NUMBER: 3
// NOTHING_ELSE: true
@@ -10,4 +10,4 @@ inline fun takeHandler2(handler: () -> Unit){}
// INVOCATION_COUNT: 1
// EXIST: { lookupString: "return@takeHandler1", itemText: "return", tailText: "@takeHandler1", attributes: "bold" }
// EXIST: { lookupString: "return@takeHandler2", itemText: "return", tailText: "@takeHandler2", attributes: "bold" }
// NUMBER: 2
// NOTHING_ELSE: true
@@ -25,4 +25,4 @@ fun takeHandler3(handler: Char.() -> Unit){}
// EXIST: { lookupString: "this@Inner", itemText: "this", tailText: "@Inner", typeText: "Outer.Nested.Inner", attributes: "bold" }
// EXIST: { lookupString: "this@Nested", itemText: "this", tailText: "@Nested", typeText: "Outer.Nested", attributes: "bold" }
// ABSENT: "this@Outer"
// NUMBER: 6
// NOTHING_ELSE: true
@@ -27,4 +27,6 @@
// EXIST: var
// EXIST: vararg
/*why?*/
// NUMBER: 24
// EXIST: companion
/*TODO*/
// NOTHING_ELSE: true