From 347cf8635d27b3f3e69dd17284808c2daec7cc8a Mon Sep 17 00:00:00 2001 From: Peter Gromov Date: Fri, 18 Sep 2009 22:24:06 +0400 Subject: [PATCH] failing FilePathClassNameCompletionTest test moved to HtmlCompletionTest --- .../fixtures/impl/LightTempDirTestFixtureImpl.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/LightTempDirTestFixtureImpl.java b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/LightTempDirTestFixtureImpl.java index a6202eb9eca1..6ee959979610 100644 --- a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/LightTempDirTestFixtureImpl.java +++ b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/LightTempDirTestFixtureImpl.java @@ -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() { 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);