failing FilePathClassNameCompletionTest test moved to HtmlCompletionTest

This commit is contained in:
Peter Gromov
2009-09-18 22:24:06 +04:00
parent 250d4a8fbd
commit 347cf8635d
@@ -33,14 +33,13 @@ public class LightTempDirTestFixtureImpl extends BaseFixture implements TempDirT
mySourceRoot = null;
}
public VirtualFile copyFile(final VirtualFile file, String targetPath) {
int pos = targetPath.lastIndexOf('/');
final String path = pos < 0 ? "" : targetPath.substring(0, pos);
public VirtualFile copyFile(final VirtualFile file, final String targetPath) {
final String path = PathUtil.getParentPath(targetPath);
return ApplicationManager.getApplication().runWriteAction(new Computable<VirtualFile>() {
public VirtualFile compute() {
try {
VirtualFile targetDir = findOrCreateDir(path);
return VfsUtil.copyFile(this, file, targetDir);
return VfsUtil.copyFile(this, file, targetDir, PathUtil.getFileName(targetPath));
}
catch (IOException e) {
throw new RuntimeException(e);