From 6ca7be8f10deb75399377f25277b943af40f72f1 Mon Sep 17 00:00:00 2001 From: dante Date: Mon, 18 Jan 2021 14:26:15 +0100 Subject: Test mathml entities. Change-Id: Ib52e1b5659b9517692765690834adbddbb1239b1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109547 Tested-by: Jenkins Reviewed-by: Noel Grandin --- starmath/qa/extras/data/mthmlentities.mml | 9 +++++++++ starmath/qa/extras/mmlimport-test.cxx | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 starmath/qa/extras/data/mthmlentities.mml diff --git a/starmath/qa/extras/data/mthmlentities.mml b/starmath/qa/extras/data/mthmlentities.mml new file mode 100644 index 000000000000..328d689ce573 --- /dev/null +++ b/starmath/qa/extras/data/mthmlentities.mml @@ -0,0 +1,9 @@ + + + + σ + + + σ + + diff --git a/starmath/qa/extras/mmlimport-test.cxx b/starmath/qa/extras/mmlimport-test.cxx index 542722e8c75b..d953e518430c 100644 --- a/starmath/qa/extras/mmlimport-test.cxx +++ b/starmath/qa/extras/mmlimport-test.cxx @@ -39,6 +39,7 @@ public: void testtdf99556(); void testTdf103430(); void testTdf103500(); + void testMathmlEntities(); CPPUNIT_TEST_SUITE(Test); CPPUNIT_TEST(testColor); @@ -49,6 +50,7 @@ public: CPPUNIT_TEST(testtdf99556); CPPUNIT_TEST(testTdf103430); CPPUNIT_TEST(testTdf103500); + CPPUNIT_TEST(testMathmlEntities); CPPUNIT_TEST_SUITE_END(); private: @@ -167,6 +169,12 @@ void Test::testTdf103500() mxDocShell->GetText()); } +void Test::testMathmlEntities() +{ + loadURL(m_directories.getURLFromSrc(u"starmath/qa/extras/data/mthmlentities.mml")); + CPPUNIT_ASSERT_EQUAL(OUString(u"{ \u03C3 \u221E \u221E \u03C3 }"), mxDocShell->GetText()); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Test); } -- cgit