Update reservedWords JS tests after changes to callable references

This commit is contained in:
Alexander Udalov
2015-10-02 23:06:55 +03:00
parent 012a2971ff
commit 659826d5c3
29 changed files with 30 additions and 30 deletions
@@ -352,10 +352,10 @@ fun testRenamed(reference: String = "$KEYWORD_MARKER") = "testRenamed(\"$KEYWORD
fun testNotRenamed(reference: String = "$KEYWORD_MARKER") = "testNotRenamed(\"$KEYWORD_MARKER\", { $reference })" fun testNotRenamed(reference: String = "$KEYWORD_MARKER") = "testNotRenamed(\"$KEYWORD_MARKER\", { $reference })"
val testRenamedByName = testRenamed() val testRenamedByName = testRenamed()
val testRenamedByRef = testRenamed("::$KEYWORD_MARKER") val testRenamedByRef = testRenamed("$KEYWORD_MARKER()")
val testNotRenamedByName = testNotRenamed() val testNotRenamedByName = testNotRenamed()
val testNotRenamedByRef = testNotRenamed("::$KEYWORD_MARKER") val testNotRenamedByRef = testNotRenamed("$KEYWORD_MARKER()")
// KEYWORDS // KEYWORDS
@@ -12,7 +12,7 @@ class TraitImpl : Trait {
class TestDelegate : Trait by TraitImpl() { class TestDelegate : Trait by TraitImpl() {
fun test() { fun test() {
testNotRenamed("catch", { ::catch }) testNotRenamed("catch", { catch() })
} }
} }
@@ -12,7 +12,7 @@ class TraitImpl : Trait {
class TestDelegate : Trait by TraitImpl() { class TestDelegate : Trait by TraitImpl() {
fun test() { fun test() {
testNotRenamed("const", { ::const }) testNotRenamed("const", { const() })
} }
} }
@@ -12,7 +12,7 @@ class TraitImpl : Trait {
class TestDelegate : Trait by TraitImpl() { class TestDelegate : Trait by TraitImpl() {
fun test() { fun test() {
testNotRenamed("null", { ::`null` }) testNotRenamed("null", { `null`() })
} }
} }
@@ -12,7 +12,7 @@ class TraitImpl : Trait {
class TestDelegate : Trait by TraitImpl() { class TestDelegate : Trait by TraitImpl() {
fun test() { fun test() {
testNotRenamed("package", { ::`package` }) testNotRenamed("package", { `package`() })
} }
} }
@@ -7,7 +7,7 @@ enum class Foo {
fun `break`() { `break`() } fun `break`() { `break`() }
fun test() { fun test() {
testNotRenamed("break", { ::`break` }) testNotRenamed("break", { `break`() })
} }
} }
@@ -7,7 +7,7 @@ enum class Foo {
fun `class`() { `class`() } fun `class`() { `class`() }
fun test() { fun test() {
testNotRenamed("class", { ::`class` }) testNotRenamed("class", { `class`() })
} }
} }
@@ -7,7 +7,7 @@ enum class Foo {
fun function() { function() } fun function() { function() }
fun test() { fun test() {
testNotRenamed("function", { ::function }) testNotRenamed("function", { function() })
} }
} }
@@ -7,7 +7,7 @@ enum class Foo {
fun implements() { implements() } fun implements() { implements() }
fun test() { fun test() {
testNotRenamed("implements", { ::implements }) testNotRenamed("implements", { implements() })
} }
} }
@@ -6,7 +6,7 @@ class TestClass {
fun arguments() { arguments() } fun arguments() { arguments() }
fun test() { fun test() {
testNotRenamed("arguments", { ::arguments }) testNotRenamed("arguments", { arguments() })
} }
} }
@@ -6,7 +6,7 @@ class TestClass {
fun NaN() { NaN() } fun NaN() { NaN() }
fun test() { fun test() {
testNotRenamed("NaN", { ::NaN }) testNotRenamed("NaN", { NaN() })
} }
} }
@@ -6,7 +6,7 @@ class TestClass {
fun `this`() { `this`() } fun `this`() { `this`() }
fun test() { fun test() {
testNotRenamed("this", { ::`this` }) testNotRenamed("this", { `this`() })
} }
} }
@@ -6,7 +6,7 @@ class TestClass {
fun `throw`() { `throw`() } fun `throw`() { `throw`() }
fun test() { fun test() {
testNotRenamed("throw", { ::`throw` }) testNotRenamed("throw", { `throw`() })
} }
} }
@@ -7,7 +7,7 @@ class TestClass {
fun `else`() { `else`() } fun `else`() { `else`() }
fun test() { fun test() {
testNotRenamed("else", { ::`else` }) testNotRenamed("else", { `else`() })
} }
} }
} }
@@ -7,7 +7,7 @@ class TestClass {
fun eval() { eval() } fun eval() { eval() }
fun test() { fun test() {
testNotRenamed("eval", { ::eval }) testNotRenamed("eval", { eval() })
} }
} }
} }
@@ -7,7 +7,7 @@ class TestClass {
fun export() { export() } fun export() { export() }
fun test() { fun test() {
testNotRenamed("export", { ::export }) testNotRenamed("export", { export() })
} }
} }
} }
@@ -7,7 +7,7 @@ class TestClass {
fun `false`() { `false`() } fun `false`() { `false`() }
fun test() { fun test() {
testNotRenamed("false", { ::`false` }) testNotRenamed("false", { `false`() })
} }
} }
} }
@@ -6,7 +6,7 @@ object TestObject {
fun private() { private() } fun private() { private() }
fun test() { fun test() {
testNotRenamed("private", { ::private }) testNotRenamed("private", { private() })
} }
} }
@@ -6,7 +6,7 @@ object TestObject {
fun protected() { protected() } fun protected() { protected() }
fun test() { fun test() {
testNotRenamed("protected", { ::protected }) testNotRenamed("protected", { protected() })
} }
} }
@@ -6,7 +6,7 @@ object TestObject {
fun `this`() { `this`() } fun `this`() { `this`() }
fun test() { fun test() {
testNotRenamed("this", { ::`this` }) testNotRenamed("this", { `this`() })
} }
} }
@@ -6,7 +6,7 @@ object TestObject {
fun `throw`() { `throw`() } fun `throw`() { `throw`() }
fun test() { fun test() {
testNotRenamed("throw", { ::`throw` }) testNotRenamed("throw", { `throw`() })
} }
} }
@@ -5,7 +5,7 @@ package foo
fun box(): String { fun box(): String {
fun `continue`() { `continue`() } fun `continue`() { `continue`() }
testRenamed("continue", { ::`continue` }) testRenamed("continue", { `continue`() })
return "OK" return "OK"
} }
@@ -5,7 +5,7 @@ package foo
fun box(): String { fun box(): String {
fun `do`() { `do`() } fun `do`() { `do`() }
testRenamed("do", { ::`do` }) testRenamed("do", { `do`() })
return "OK" return "OK"
} }
@@ -5,7 +5,7 @@ package foo
fun box(): String { fun box(): String {
fun private() { private() } fun private() { private() }
testRenamed("private", { ::private }) testRenamed("private", { private() })
return "OK" return "OK"
} }
@@ -5,7 +5,7 @@ package foo
fun box(): String { fun box(): String {
fun protected() { protected() } fun protected() { protected() }
testRenamed("protected", { ::protected }) testRenamed("protected", { protected() })
return "OK" return "OK"
} }
@@ -5,7 +5,7 @@ package foo
fun await() { await() } fun await() { await() }
fun box(): String { fun box(): String {
testNotRenamed("await", { ::await }) testNotRenamed("await", { await() })
return "OK" return "OK"
} }
@@ -5,7 +5,7 @@ package foo
fun case() { case() } fun case() { case() }
fun box(): String { fun box(): String {
testNotRenamed("case", { ::case }) testNotRenamed("case", { case() })
return "OK" return "OK"
} }
@@ -5,7 +5,7 @@ package foo
fun `else`() { `else`() } fun `else`() { `else`() }
fun box(): String { fun box(): String {
testNotRenamed("else", { ::`else` }) testNotRenamed("else", { `else`() })
return "OK" return "OK"
} }
@@ -5,7 +5,7 @@ package foo
fun `false`() { `false`() } fun `false`() { `false`() }
fun box(): String { fun box(): String {
testNotRenamed("false", { ::`false` }) testNotRenamed("false", { `false`() })
return "OK" return "OK"
} }