Bug 337731 - Make gnomevfs use frozen linkage, r=darin

git-svn-id: svn://10.0.0.236/trunk@198275 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
benjamin%smedbergs.us
2006-05-23 19:50:24 +00:00
parent 51a8f6a415
commit 108fbe2771
5 changed files with 154 additions and 37 deletions

View File

@@ -463,6 +463,21 @@ static PRBool test_mutation()
return PR_TRUE;
}
static PRBool test_stripchars()
{
nsCString test(kAsciiData);
test.StripChars("ld");
if (!test.Equals("Heo Wor"))
return PR_FALSE;
test.Assign(kAsciiData);
test.StripWhitespace();
if (!test.Equals("HelloWorld"))
return PR_FALSE;
return PR_TRUE;
}
static PRBool test_trim()
{
static const char kWS[] = "\n\t\r ";
@@ -554,6 +569,7 @@ tests[] =
{ "test_adopt", test_adopt },
{ "test_adopt_sub", test_adopt_sub },
{ "test_mutation", test_mutation },
{ "test_stripchars", test_stripchars },
{ "test_trim", test_trim },
{ "test_find", test_find },
{ "test_compressws", test_compressws },