diff options
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); } |