diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-09-19 09:26:41 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2016-09-20 06:46:39 +0000 |
commit | 3a8035bcb6cf081572d86813021bbccab265a935 (patch) | |
tree | 753d6a1780d702137e1aa7dac37c3896184a5f00 /starmath/qa | |
parent | d5f1e7c5adac5f38379c56b536640f3aaf9ec7d5 (diff) |
tdf#97049 Export "intd" to MathML
Change-Id: Ie1fc33e18958e73d4876b2b5daceec127011c3cc
Reviewed-on: https://gerrit.libreoffice.org/29003
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/qa')
-rw-r--r-- | starmath/qa/extras/mmlexport-test.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/starmath/qa/extras/mmlexport-test.cxx b/starmath/qa/extras/mmlexport-test.cxx index f13ee9deba21..3a2d222f18e4 100644 --- a/starmath/qa/extras/mmlexport-test.cxx +++ b/starmath/qa/extras/mmlexport-test.cxx @@ -35,9 +35,11 @@ public: virtual void setUp() override; virtual void tearDown() override; + void testTdf97049(); void testTdf101022(); CPPUNIT_TEST_SUITE(MathMLExportTest); + CPPUNIT_TEST(testTdf97049); CPPUNIT_TEST(testTdf101022); CPPUNIT_TEST_SUITE_END(); @@ -85,6 +87,16 @@ xmlDocPtr MathMLExportTest::exportAndParse() return pDoc; } +void MathMLExportTest::testTdf97049() +{ + mxDocShell->SetText("intd {{1 over x} dx}"); + xmlDocPtr pDoc = exportAndParse(); + assertXPath(pDoc, "/m:math/m:semantics/m:mrow/m:mo[1]", "stretchy", "true"); + auto aContent = getXPathContent(pDoc, "/m:math/m:semantics/m:mrow/m:mo[1]"); + CPPUNIT_ASSERT_EQUAL(sal_Int32(1), aContent.getLength()); + CPPUNIT_ASSERT_EQUAL(sal_Unicode(0x222B), aContent[0]); +} + void MathMLExportTest::testTdf101022() { #define CHECK_MATHVARIANT(capital, small) do \ |