summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2018-10-11 10:20:55 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2018-10-11 16:02:33 +0200
commit5521184be8873552879f1118af529e3a9cac83ba (patch)
tree30ed4fda7d9b963cf7120cf69a53278f8d0dbb51 /editeng
parent0ae27915d0f40abbb46861fd7cc92b0443ea05b1 (diff)
Make editeng_core test depend on more_fonts
CppunitTest_editeng_core explicitly request the "Liberation Sans" font. Change-Id: I810bddda26498252985f1869df58610e79ebc5ef Reviewed-on: https://gerrit.libreoffice.org/61658 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/CppunitTest_editeng_core.mk2
-rw-r--r--editeng/qa/unit/core-test.cxx8
2 files changed, 10 insertions, 0 deletions
diff --git a/editeng/CppunitTest_editeng_core.mk b/editeng/CppunitTest_editeng_core.mk
index 752af13f5d82..3b3a999e8fa0 100644
--- a/editeng/CppunitTest_editeng_core.mk
+++ b/editeng/CppunitTest_editeng_core.mk
@@ -73,4 +73,6 @@ $(eval $(call gb_CppunitTest_use_components,editeng_core,\
$(eval $(call gb_CppunitTest_use_configuration,editeng_core))
+$(eval $(call gb_CppunitTest_use_more_fonts,editeng_core))
+
# vim: set noet sw=4 ts=4:
diff --git a/editeng/qa/unit/core-test.cxx b/editeng/qa/unit/core-test.cxx
index 1e0673677653..106c8963a226 100644
--- a/editeng/qa/unit/core-test.cxx
+++ b/editeng/qa/unit/core-test.cxx
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include <config_features.h>
+
#include <test/bootstrapfixture.hxx>
#include <cppunit/TestFixture.h>
@@ -50,8 +52,10 @@ public:
virtual void setUp() override;
virtual void tearDown() override;
+#if HAVE_MORE_FONTS
/// Test text portions position when percentage line spacing is set
void testLineSpacing();
+#endif
void testConstruction();
@@ -102,7 +106,9 @@ public:
DECL_STATIC_LINK( Test, CalcFieldValueHdl, EditFieldInfo*, void );
CPPUNIT_TEST_SUITE(Test);
+#if HAVE_MORE_FONTS
CPPUNIT_TEST(testLineSpacing);
+#endif
CPPUNIT_TEST(testConstruction);
CPPUNIT_TEST(testUnoTextFields);
CPPUNIT_TEST(testAutocorrect);
@@ -143,6 +149,7 @@ void Test::tearDown()
test::BootstrapFixture::tearDown();
}
+#if HAVE_MORE_FONTS
void Test::testLineSpacing()
{
// Create EditEngine's instance
@@ -219,6 +226,7 @@ void Test::testLineSpacing()
// Test upper Word limit - 13200% (factor 132)
doTest(13200, 33615, 33660);
}
+#endif
void Test::testConstruction()
{