summaryrefslogtreecommitdiff
path: root/unotools/qa
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-09-08 13:03:03 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-09-08 14:27:23 +0100
commit1f7e6bdd23600cf118b786bbeb869949c36297e7 (patch)
tree5c57a8b924c28bc22e1d39db107bc594f9c22834 /unotools/qa
parent8e1a7034ff35ee825f3f8f22e14d93189149a1aa (diff)
fdo#82854 - cleanup & review bits.
Change-Id: Ia5b2628adb62013a22cf6c5e384154c54abc2294
Diffstat (limited to 'unotools/qa')
-rw-r--r--unotools/qa/unit/testGetEnlishSearchName.cxx25
1 files changed, 5 insertions, 20 deletions
diff --git a/unotools/qa/unit/testGetEnlishSearchName.cxx b/unotools/qa/unit/testGetEnlishSearchName.cxx
index 38b10eafb516..1701215987a0 100644
--- a/unotools/qa/unit/testGetEnlishSearchName.cxx
+++ b/unotools/qa/unit/testGetEnlishSearchName.cxx
@@ -15,10 +15,8 @@
#include "cppunit/plugin/TestPlugIn.h"
#include <unotools/fontdefs.hxx>
-
class Test: public CppUnit::TestFixture
{
-
public:
virtual void setUp() SAL_OVERRIDE;
void testSingleElement();
@@ -34,36 +32,23 @@ void Test::setUp()
void Test::testSingleElement()
{
- { //lowercase
- printf("GetEnglishSearchFontName( \"SYMBOL\" )");
+ { // lowercase
OUString test1 = GetEnglishSearchFontName( "SYMBOL" );
CPPUNIT_ASSERT_EQUAL(test1, OUString("symbol"));
- printf("return %s",test1.getStr());
- //trailingWhitespaces
- printf("GetEnglishSearchFontName( \"SYMBOL \" )");
+ // trailingWhitespaces
test1 = GetEnglishSearchFontName( "Symbol " );
CPPUNIT_ASSERT_EQUAL(test1, OUString("symbol"));
- printf("return %s",test1.getStr());
- //removing Skripts
- printf("GetEnglishSearchFontName( \"SYMBOL(skript)\" )");
+ // removing Skripts
test1 = GetEnglishSearchFontName( "Symbol(skript)" );
CPPUNIT_ASSERT_EQUAL(test1, OUString("symbol"));
- printf("return %s",test1.getStr());
- //remove Whitespaces between
- printf("GetEnglishSearchFontName( \"SYMBOL (skript)\" )");
+ // remove Whitespaces between
test1 = GetEnglishSearchFontName( "Symbol (skript)" );
CPPUNIT_ASSERT_EQUAL(test1, OUString("symbol"));
- printf("return %s",test1.getStr());
- //trailingWhitespaces
-
+ // trailingWhitespaces
}
-
-
}
-
-
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT();