diff options
author | dante <dante19031999@gmail.com> | 2021-01-18 14:26:15 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-30 12:57:31 +0100 |
commit | 6ca7be8f10deb75399377f25277b943af40f72f1 (patch) | |
tree | f4f61919bb88ed8fb73a1ff878503b05cedc00ea /starmath | |
parent | 6aa18a840cc205b430999e4243d9ee4b9091432d (diff) |
Test mathml entities.
Change-Id: Ib52e1b5659b9517692765690834adbddbb1239b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109547
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/qa/extras/data/mthmlentities.mml | 9 | ||||
-rw-r--r-- | starmath/qa/extras/mmlimport-test.cxx | 8 |
2 files changed, 17 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> + <semantics> + <mi>σ</mi> + <mi>∞</mi> + <mi>∞</mi> + <mi>σ</mi> + </semantics> +</math> 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); } |