cout << "\tFAILED" << endl << endl;
printf("\tFAILED\n\n");
nsresult makeAbsTest(const char* i_BaseURI, const char* relativePortion,                     const char* expectedResult){    if (!i_BaseURI)        return NS_ERROR_FAILURE;    // build up the base URL    nsCOMPtr<nsIURI> baseURL;    nsresult status = nsComponentManager::CreateInstance(kStdURLCID, nsnull,         NS_GET_IID(nsIURI), getter_AddRefs(baseURL));    if (NS_FAILED(status))    {        cout << "CreateInstance failed" << endl;        return status;    }    status = baseURL->SetSpec(nsDependentCString(i_BaseURI));    if (NS_FAILED(status)) return status;    // get the new spec    nsCAutoString newURL;    status = baseURL->Resolve(nsDependentCString(relativePortion), newURL);    if (NS_FAILED(status)) return status;    nsCAutoString temp;    baseURL->GetSpec(temp);    cout << "Analyzing " << temp.get() << endl;    cout << "With      " << relativePortion << endl;    cout << "Got       " << newURL.get() << endl;    if (expectedResult) {        cout << "Expect    " << expectedResult << endl;        int res = PL_strcmp(newURL.get(), expectedResult);        if (res == 0) {            cout << "\tPASSED" << endl << endl;            return NS_OK;        } else {            cout << "\tFAILED" << endl << endl;            return NS_ERROR_FAILURE;        }    }    return NS_OK;}