[Libreoffice-commits] core.git: starmath/qa
dante (via logerrit)
logerrit at kemper.freedesktop.org
Sat Jan 30 11:58:14 UTC 2021
starmath/qa/extras/data/mthmlentities.mml | 9 +++++++++
starmath/qa/extras/mmlimport-test.cxx | 8 ++++++++
2 files changed, 17 insertions(+)
New commits:
commit 6ca7be8f10deb75399377f25277b943af40f72f1
Author: dante <dante19031999 at gmail.com>
AuthorDate: Mon Jan 18 14:26:15 2021 +0100
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sat Jan 30 12:57:31 2021 +0100
Test mathml entities.
Change-Id: Ib52e1b5659b9517692765690834adbddbb1239b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109547
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
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);
}
More information about the Libreoffice-commits
mailing list