Lines Matching refs:testLocale
242 Locale testLocale("");
244 testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i], rawData[VAR][i]);
247 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i], rawData[VAR][i]);
249 logln("Testing " + (UnicodeString)testLocale.getName() + "...");
251 if ( (temp=testLocale.getLanguage()) != (dataTable[LANG][i]))
254 if ( (temp=testLocale.getScript()) != (dataTable[SCRIPT][i]))
257 if ( (temp=testLocale.getCountry()) != (dataTable[CTRY][i]))
260 if ( (temp=testLocale.getVariant()) != (dataTable[VAR][i]))
263 if ( (temp=testLocale.getName()) != (dataTable[NAME][i]))
270 Locale testLocale("");
272 testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i]);
275 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i]);
277 logln("Testing " + (temp=testLocale.getName()) + "...");
279 if ( (temp=testLocale.getLanguage()) != (dataTable[LANG][i]))
282 if ( (temp=testLocale.getScript()) != (dataTable[SCRIPT][i]))
285 if ( (temp=testLocale.getCountry()) != (dataTable[CTRY][i]))
288 if (testLocale.getVariant()[0] != 0)
423 Locale testLocale(rawData[LANG][i], rawData[CTRY][i], rawData[VAR][i]);
424 logln("Testing " + (temp=testLocale.getName()) + "...");
426 if ( (temp=testLocale.getISO3Language()) != (dataTable[LANG3][i]))
429 if ( (temp=testLocale.getISO3Country()) != (dataTable[CTRY3][i]))
433 sprintf(temp2, "%x", (int)testLocale.getLCID());
738 Locale testLocale("");
740 testLocale = Locale(rawData[LANG][i], rawData[SCRIPT][i], rawData[CTRY][i], rawData[VAR][i]);
743 testLocale = Locale(rawData[LANG][i], rawData[CTRY][i], rawData[VAR][i]);
745 logln(" Testing " + (temp=testLocale.getName()) + "...");
753 testLocale.getDisplayLanguage(displayLocale, testLang);
754 testLocale.getDisplayScript(displayLocale, testScript);
755 testLocale.getDisplayCountry(displayLocale, testCtry);
756 testLocale.getDisplayVariant(displayLocale, testVar);
757 testLocale.getDisplayName(displayLocale, testName);
786 dataerrln("Display language (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.getName()) + ") got " + testLang + " expected " + expectedLang);
788 dataerrln("Display script (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.getName()) + ") got " + testScript + " expected " + expectedScript);
790 dataerrln("Display country (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.getName()) + ") got " + testCtry + " expected " + expectedCtry);
792 dataerrln("Display variant (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.getName()) + ") got " + testVar + " expected " + expectedVar);
794 dataerrln("Display name (" + UnicodeString(displayLocale.getName()) + ") of (" + UnicodeString(testLocale.getName()) + ") got " + testName + " expected " + expectedName);