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
@@ -7,4 +7,4 @@ fun bar(pInt: Int, pString: String) {
// EXIST: { lookupString: "param1", itemText: "param1 =" }
// EXIST: { lookupString: "param3", itemText: "param3 =" }
// ABSENT: param2
// NUMBER: 2
// NOTHING_ELSE: true
@@ -7,4 +7,4 @@ fun bar(pInt: Int, pString: String) {
// EXIST: { lookupString: "param1", itemText: "param1 =" }
// EXIST: { lookupString: "param3", itemText: "param3 =" }
// ABSENT: param2
// NUMBER: 2
// NOTHING_ELSE: true
@@ -9,4 +9,4 @@ fun f(){
// EXIST: { lookupString: "emptyList", typeText: "List<String>" }
// EXIST: { lookupString: "emptyList", typeText: "List<Int>" }
// NUMBER: 2
// NOTHING_ELSE: true
@@ -7,4 +7,4 @@ fun foo(): I = <caret>
// EXIST: { lookupString: "O", itemText: "O", tailText: " (<root>)" }
// EXIST: foo
// EXIST: object
// NUMBER: 3
// NOTHING_ELSE: true
@@ -14,4 +14,4 @@ fun foo(): T {
// EXIST: foo
// EXIST: object
// ABSENT: Other
// NUMBER: 3
// NOTHING_ELSE: true
@@ -6,6 +6,6 @@ fun bar(o: Any) {
foo(o as <caret>)
}
// NUMBER: 2
// EXIST: String
// EXIST: Int
// NOTHING_ELSE: true
@@ -6,6 +6,6 @@ fun bar(o: Any) {
foo(o as <caret>)
}
// NUMBER: 2
// EXIST: { lookupString:"List", itemText:"List<String>" }
// EXIST: { lookupString:"Map", itemText:"Map<String, Int>" }
// NOTHING_ELSE: true
@@ -7,6 +7,6 @@ fun bar(o: Any) {
foo(o as <caret>)
}
// NUMBER: 2
// EXIST: { lookupString:"List", itemText:"List<String>" }
// EXIST: { lookupString:"String", itemText:"String" }
// NOTHING_ELSE: true
@@ -15,4 +15,4 @@ fun foo(c: C): T {
// EXIST: { lookupString: "Inner2", itemText: "Inner2", tailText: "()", typeText: "C.Inner2" }
// ABSENT: Inner3
// ABSENT: Nested
// NUMBER: 2
// NOTHING_ELSE: true
@@ -8,4 +8,4 @@ fun foo() : C.Inner {
// ABSENT: Inner
// EXIST: foo
// NUMBER: 1
// 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