diff -r 41c0a814d878 -r 6c9acdc6adc0 logsui/logscntfinder/tsrc/ut_logscntfinder/src/ut_logspredictivethai12keytranslator.cpp --- a/logsui/logscntfinder/tsrc/ut_logscntfinder/src/ut_logspredictivethai12keytranslator.cpp Fri Jun 11 13:38:41 2010 +0300 +++ b/logsui/logscntfinder/tsrc/ut_logscntfinder/src/ut_logspredictivethai12keytranslator.cpp Thu Jun 24 14:44:14 2010 +0300 @@ -56,6 +56,7 @@ void UT_LogsPredictiveThai12KeyTranslator::testTranslateText() { + QEXPECT_FAIL("", "No proper Thai keymap yet", Abort ); QCOMPARE( mTranslator->translateText( QString( "0123456789" ) ), QString( "0123456789" ) ); //finds name latin name translator QCOMPARE( mTranslator->translateText( QString( "Nokia" ) ), QString( "66542" ) ); @@ -81,6 +82,7 @@ void UT_LogsPredictiveThai12KeyTranslator::testTranslateChar() { + QEXPECT_FAIL("", "No proper Thai keymap yet", Abort ); bool ok; QCOMPARE( mTranslator->translateChar( QChar('0'), ok ), QChar('0') ); @@ -113,12 +115,6 @@ void UT_LogsPredictiveThai12KeyTranslator::testEncodes() { - //thai - const int ucsize = 9; - const QChar thaiName2[] = {0x0E01,0x0E06,0x0E2F,0x0E0E,0x0E14,0x0E19,0x0E30,0x0E23,0x0E2A }; - - QVERIFY( mTranslator->encodes( QString( thaiName2,ucsize ) ) ); - //china QString uni1; uni1.append(QChar(0x4E0E)); @@ -126,7 +122,14 @@ QVERIFY( !mTranslator->encodes( uni1) ); QVERIFY( !mTranslator->encodes( QString( "Zulu" ) ) ); - + + QEXPECT_FAIL("", "No proper Thai keymap yet", Abort ); + //thai + const int ucsize = 9; + const QChar thaiName2[] = {0x0E01,0x0E06,0x0E2F,0x0E0E,0x0E14,0x0E19,0x0E30,0x0E23,0x0E2A }; + + QVERIFY( mTranslator->encodes( QString( thaiName2,ucsize ) ) ); + }