mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
autopopup tests: check document text instead of psi
This commit is contained in:
+5
-5
@@ -439,7 +439,7 @@ class Foo {
|
||||
}
|
||||
""")
|
||||
type 'o.'
|
||||
assert myFixture.file.text.contains("ooo.")
|
||||
assert myFixture.editor.document.text.contains("ooo.")
|
||||
assert lookup
|
||||
}
|
||||
|
||||
@@ -450,7 +450,7 @@ class Foo {
|
||||
}
|
||||
""")
|
||||
type 'tos.'
|
||||
assert myFixture.file.text.contains("toString().")
|
||||
assert myFixture.editor.document.text.contains("toString().")
|
||||
assert lookup
|
||||
}
|
||||
|
||||
@@ -461,7 +461,7 @@ class Foo {
|
||||
}
|
||||
""")
|
||||
type 'AIOO.'
|
||||
assert myFixture.file.text.contains("ArrayIndexOutOfBoundsException.")
|
||||
assert myFixture.editor.document.text.contains("ArrayIndexOutOfBoundsException.")
|
||||
assert lookup
|
||||
}
|
||||
|
||||
@@ -1090,7 +1090,7 @@ class Foo {
|
||||
type '\n.'
|
||||
assert lookup
|
||||
assert 'hashCode' in myFixture.lookupElementStrings
|
||||
assert myFixture.file.text.contains('asdf.')
|
||||
assert myFixture.editor.document.text.contains('asdf.')
|
||||
}
|
||||
|
||||
public void testNoWordCompletionAutoPopup() {
|
||||
@@ -1400,7 +1400,7 @@ class Foo extends Abcdefg <caret>'''
|
||||
}}
|
||||
'''
|
||||
type 'FIS:'
|
||||
assert myFixture.file.text.contains('FIS:')
|
||||
assert myFixture.editor.document.text.contains('FIS:')
|
||||
}
|
||||
|
||||
public void testSoutvTemplate() {
|
||||
|
||||
+1
-1
@@ -194,7 +194,7 @@ Abcdefg <caret>'''
|
||||
public void testEnteringLabel() {
|
||||
myFixture.configureByText 'a.groovy', '<caret>'
|
||||
type 'FIS:'
|
||||
assert myFixture.file.text == 'FIS:'
|
||||
assert myFixture.editor.document.text == 'FIS:'
|
||||
}
|
||||
|
||||
public void testEnteringNamedArg() {
|
||||
|
||||
Reference in New Issue
Block a user