mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
don't rely on SmartPOinterManager to load document
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -89,7 +89,7 @@ class StubAstSwitchTest extends LightCodeInsightFixtureTestCase {
|
||||
def oldClass = JavaPsiFacade.getInstance(project).findClass("A", GlobalSearchScope.allScope(project))
|
||||
def pointer = SmartPointerManager.getInstance(project).createSmartPsiElementPointer(oldClass)
|
||||
|
||||
def document = FileDocumentManager.instance.getCachedDocument(file.virtualFile)
|
||||
def document = FileDocumentManager.instance.getDocument(file.virtualFile)
|
||||
assert document
|
||||
assert file == PsiDocumentManager.getInstance(project).getCachedPsiFile(document)
|
||||
assert document == PsiDocumentManager.getInstance(project).getCachedDocument(file)
|
||||
|
||||
Reference in New Issue
Block a user