mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tests
This commit is contained in:
+2
-2
@@ -123,7 +123,7 @@ class Foo {
|
||||
myFixture.checkResult """import static Foo.abcmethod1
|
||||
|
||||
def foo() {
|
||||
abcmethod1<caret>
|
||||
abcmethod1(<caret>)
|
||||
}"""
|
||||
|
||||
}
|
||||
@@ -140,7 +140,7 @@ class Foo {
|
||||
myFixture.checkResult """import foo.Foo
|
||||
|
||||
def foo() {
|
||||
Foo.abcmethod<caret>
|
||||
Foo.abcmethod(<caret>)
|
||||
}"""
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -487,7 +487,7 @@ form<caret>"""
|
||||
|
||||
myFixture.completeBasic()
|
||||
myFixture.checkResult """import static java.lang.String.format
|
||||
format<caret>"""
|
||||
format(<caret>)"""
|
||||
}
|
||||
|
||||
public void testImportAsterisk() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
def foo() {
|
||||
List<String> list=['a', 'b']
|
||||
list[0].substring<caret>
|
||||
list[0].substring(<caret>)
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
def foo() {
|
||||
map=[1:'a', 3:'b', 2:'c']
|
||||
map[2].substring<caret>
|
||||
map[2].substring(<caret>)
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
list=['a', 'b']
|
||||
list.each{
|
||||
it.substring<caret>
|
||||
it.substring(<caret>)
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
List<String> list=['1', '2', '3']
|
||||
list.each{
|
||||
it->
|
||||
it.substring<caret>
|
||||
it.substring(<caret>)
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
List<String> list=['a', 'b', 'c']
|
||||
list.inject(2){
|
||||
value, item->
|
||||
item.substring<caret>
|
||||
item.substring(<caret>)
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@ public class Parent {
|
||||
|
||||
def foo(o) {
|
||||
if (o instanceof String) {
|
||||
o.substring<caret>
|
||||
o.substring(<caret>)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
def ctx = context(filetypes : ["unknown"])
|
||||
|
||||
contributor([ctx]) {
|
||||
method<caret>
|
||||
method(<caret>)
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
def ctx = context(filetypes : ["unknown"])
|
||||
|
||||
contributor([ctx]) {
|
||||
findClass<caret>
|
||||
findClass(<caret>)
|
||||
}
|
||||
@@ -10,5 +10,5 @@ class Runner {
|
||||
|
||||
def runner = new Runner()
|
||||
runner.boo new MyDelegate(), {
|
||||
saySomething<caret>
|
||||
saySomething(<caret>)
|
||||
}
|
||||
@@ -13,5 +13,5 @@ class Runner {
|
||||
|
||||
def runner = new Runner()
|
||||
runner.boo(new MyDelegate()) {
|
||||
saySomething<caret>
|
||||
saySomething(<caret>)
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
def foo() {
|
||||
"".initCause<caret>
|
||||
"".initCause(<caret>)
|
||||
}
|
||||
+1
-1
@@ -6,4 +6,4 @@ class MyBean {
|
||||
|
||||
def bean = new MyBean()
|
||||
|
||||
bean.firePropertyChange<caret>
|
||||
bean.firePropertyChange(<caret>)
|
||||
+1
-1
@@ -12,4 +12,4 @@ def gr8conf = new Event(title: "GR8 Conference",
|
||||
when: df.parse("2009/05/18"))
|
||||
|
||||
|
||||
gr8conf.before<caret>
|
||||
gr8conf.before(<caret>)
|
||||
+1
-1
@@ -6,4 +6,4 @@ class MyBean {
|
||||
|
||||
def bean = new MyBean()
|
||||
|
||||
bean.fireVetoableChange<caret>
|
||||
bean.fireVetoableChange(<caret>)
|
||||
Reference in New Issue
Block a user