result = nsComponentManager::FindFactory(kLocaleFactoryCID, getter_AddRefs(localeFactory));
localeFactory = do_GetClassObject(kLocaleFactoryCID, &result);
factory_test_isupports(void){	nsresult			result;	nsCOMPtr<nsILocaleFactory>	localeFactory;	nsCOMPtr<nsISupports>		genericInterface1, genericInterface2;	nsCOMPtr<nsIFactory>	genericFactory1, genericFactory2;	result = nsComponentManager::FindFactory(kLocaleFactoryCID,										getter_AddRefs(localeFactory));	NS_ASSERTION(NS_SUCCEEDED(result),"nsLocaleTest: factory_create_interface failed");	//	// test generic interface	//	result = localeFactory->QueryInterface(kISupportsIID, getter_AddRefs(genericInterface1));	NS_ASSERTION(NS_SUCCEEDED(result),"nsLocaleTest: factory_test_isupports failed.");	result = localeFactory->QueryInterface(kISupportsIID, getter_AddRefs(genericInterface2));	NS_ASSERTION(NS_SUCCEEDED(result),"nsLocaleTest: factory_test_isupports failed.");	NS_ASSERTION(genericInterface1==genericInterface2,"nsLocaleTest: factory_test_isupports failed.");	//	// test generic factory	//	result = localeFactory->QueryInterface(kIFactoryIID, getter_AddRefs(genericFactory1));	NS_ASSERTION(NS_SUCCEEDED(result),"nsLocaleTest: factory_test_isupports failed.");	result = localeFactory->QueryInterface(kIFactoryIID, getter_AddRefs(genericFactory2));	NS_ASSERTION(NS_SUCCEEDED(result),"nsLocaleTest: factory_test_isupports failed.");	NS_ASSERTION(genericFactory1==genericFactory2,"nsLocaleTest: factory_test_isupports failed.");}