diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-03-26 17:14:54 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-03-26 17:20:05 +0100 |
commit | 0fd8f9808435f1eedf7065964eb09e69501975c3 (patch) | |
tree | b8da1243465101d6f99009530106cdf651af4c11 /sw | |
parent | 0682a1cedfddb0db58553f8cbfe619964bd1888a (diff) |
testcase for the previous starmath docx fixes
Based on the one broken case in
http://mail-archives.apache.org/mod_mbox/openoffice-dev/201303.mbox/<5150A98B.8050901@yandex.ru>
Change-Id: I3f8f1b8d8239e12a3315c6d8aa0cddee47af4a85
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/math-literal.docx | bin | 0 -> 3850 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 9 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/math-literal.docx b/sw/qa/extras/ooxmlexport/data/math-literal.docx Binary files differnew file mode 100644 index 000000000000..b62bd23513ce --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/math-literal.docx diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index da09b122f510..808bf6319af7 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -84,6 +84,7 @@ public: void testTextframeGradient(); void testCellBtlr(); void testTableStylerPrSz(); + void testMathLiteral(); CPPUNIT_TEST_SUITE(Test); #if !defined(MACOSX) && !defined(WNT) @@ -128,6 +129,7 @@ void Test::run() {"textframe-gradient.docx", &Test::testTextframeGradient}, {"cell-btlr.docx", &Test::testCellBtlr}, {"table-style-rPr-sz.docx", &Test::testTableStylerPrSz}, + {"math-literal.docx", &Test::testMathLiteral}, }; // Don't test the first import of these, for some reason those tests fail const char* aBlacklist[] = { @@ -650,6 +652,13 @@ void Test::testTableStylerPrSz() // CPPUNIT_ASSERT_EQUAL(awt::FontSlant_ITALIC, getProperty<awt::FontSlant>(getRun(xPara, 1), "CharPosture")); } +void Test::testMathLiteral() +{ + CHECK_FORMULA( "iiint from {V} to <?> {\"div\" \"F\"} dV= llint from {S} to <?> {\"F\" ∙ \"n \" dS}", + getFormula( getRun( getParagraph( 1 ), 1 ))); +} + + CPPUNIT_TEST_SUITE_REGISTRATION(Test); CPPUNIT_PLUGIN_IMPLEMENT(); |