Bug 482942. Tests for nsILocalFile implementations. Also changes nsLocalFileUnix::MoveTo to update the object to refer to the destination, matching other platforms' behaviour. r=bsmedberg

This commit is contained in:
Robert O'Callahan
2009-03-24 13:44:37 +13:00
parent 31eb9ebeab
commit 20d35d04b1
6 changed files with 570 additions and 469 deletions

View File

@@ -921,6 +921,11 @@ nsLocalFile::MoveToNative(nsIFile *newParent, const nsACString &newName)
rv = NSRESULT_FOR_ERRNO();
}
}
if (NS_SUCCEEDED(rv)) {
// Adjust this
mPath = newPathName;
}
return rv;
}