diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy b/java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy index 75bc06a36452..96f0a6d6b1a8 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy +++ b/java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy @@ -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 ''' }} ''' type 'FIS:' - assert myFixture.file.text.contains('FIS:') + assert myFixture.editor.document.text.contains('FIS:') } public void testSoutvTemplate() { diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/completion/GroovyAutoPopupTest.groovy b/plugins/groovy/test/org/jetbrains/plugins/groovy/completion/GroovyAutoPopupTest.groovy index 962788625164..909052ae47f6 100644 --- a/plugins/groovy/test/org/jetbrains/plugins/groovy/completion/GroovyAutoPopupTest.groovy +++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/completion/GroovyAutoPopupTest.groovy @@ -194,7 +194,7 @@ Abcdefg ''' public void testEnteringLabel() { myFixture.configureByText 'a.groovy', '' type 'FIS:' - assert myFixture.file.text == 'FIS:' + assert myFixture.editor.document.text == 'FIS:' } public void testEnteringNamedArg() {