This checkin makes all the existing webclient unit tests run

successfully.  We are now ready to continue with webclient 2.0
development.

M build-tests.xml

- formatting

M build.xml

- added target that skips the "main" dependency.

M src_moz/ProfileManagerImpl.cpp

- correct error messages

M test/automated/src/classes/org/mozilla/webclient/ProfileManagerTest.java

- reset the system to the original profile before deleting the new one.


git-svn-id: svn://10.0.0.236/trunk@153268 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2004-02-26 04:21:24 +00:00
parent 167dd699a8
commit 293e5569b5
4 changed files with 18 additions and 6 deletions

View File

@@ -370,10 +370,10 @@ JNIEXPORT void JNICALL Java_org_mozilla_webclient_impl_wrapper_1native_ProfileMa
(PRUnichar *) ::util_GetStringChars(env, oldNameJstr),
*newName = (nsnull == newNameJstr) ? nsnull :
(PRUnichar *) ::util_GetStringChars(env, newNameJstr);
rv = profile->RenameProfile(oldName, newName);
if (NS_FAILED(rv)) {
::util_ThrowExceptionToJava(env, "Can't create new profile.");
::util_ThrowExceptionToJava(env, "Can't rename new profile.");
}
::util_ReleaseStringChars(env, oldNameJstr, oldName);
@@ -402,7 +402,7 @@ JNIEXPORT void JNICALL Java_org_mozilla_webclient_impl_wrapper_1native_ProfileMa
rv = profile->DeleteProfile(profileName, canDeleteFiles);
if (NS_FAILED(rv)) {
::util_ThrowExceptionToJava(env, "Can't create new profile.");
::util_ThrowExceptionToJava(env, "Can't delete profile.");
}
::util_ReleaseStringChars(env, profileNameJstr, profileName);