You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Filip Maj (JIRA)" <ji...@apache.org> on 2013/07/04 20:05:48 UTC
[jira] [Resolved] (CB-4064) Test case file.spec.71 seems not to be
doing what it says
[ https://issues.apache.org/jira/browse/CB-4064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj resolved CB-4064.
---------------------------
Resolution: Invalid
Actually, according to the docs, moving a directory into ANY subdirectory of itself should resort in an error. In this test case, it is moving the housing directory into a subdirectory named {{dstDir}} of its own directory, so this one should be valid.
> Test case file.spec.71 seems not to be doing what it says
> ---------------------------------------------------------
>
> Key: CB-4064
> URL: https://issues.apache.org/jira/browse/CB-4064
> Project: Apache Cordova
> Issue Type: Test
> Components: mobile-spec
> Affects Versions: 2.7.0
> Reporter: Peter
> Assignee: Filip Maj
> Priority: Minor
>
> It seems that the cordova-mobile-spec test case "file.spec.71 moveTo: directory into itself" is not really doing what is claims to be doing, because the current moveTo is not copying into itself at all.
> I think the *dstDir* variable should be removed
> and
> the line: directory.moveTo(directory, dstDir, win, itMove);
> should be changed to: directory.moveTo(directory, *srcDir*, win, itMove);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira