diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-26 13:40:41 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-26 13:42:11 -0400 |
commit | fd2c823fbc304a2cedf5fff9661f67b4c16c6cf7 (patch) | |
tree | 4fcbdaf224996bed0813a12358807d46f182f30c /sc/qa | |
parent | 674fa5d51111f09b64c781bf90a5c2c7f456695d (diff) |
Fix this export test. Now this test passes.
Change-Id: Ia3d11c6fb29c7938e0d8f6e25636da5d22b4a8c8
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/subsequent_export-test.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx index 90ced45e8b15..6ec655039d75 100644 --- a/sc/qa/unit/subsequent_export-test.cxx +++ b/sc/qa/unit/subsequent_export-test.cxx @@ -35,6 +35,7 @@ #include "editeng/wghtitem.hxx" #include "editeng/postitem.hxx" #include "editeng/editdata.hxx" +#include "editeng/eeitem.hxx" using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -77,7 +78,7 @@ public: CPPUNIT_TEST(testColorScaleExportXLSX); CPPUNIT_TEST(testMiscRowHeightExport); CPPUNIT_TEST(testNamedRangeBugfdo62729); -// CPPUNIT_TEST(testRichTextExportODS); This currently fails. + CPPUNIT_TEST(testRichTextExportODS); CPPUNIT_TEST(testInlineArrayXLS); CPPUNIT_TEST(testEmbeddedChartXLS); CPPUNIT_TEST(testFormulaReferenceXLS); @@ -361,7 +362,7 @@ void ScExportTest::testRichTextExportODS() SfxItemSet aItemSet = rEE.GetEmptyItemSet(); aSel.nStartPos = 0; aSel.nEndPos = 4; - SvxWeightItem aWeight(WEIGHT_BOLD, ATTR_FONT_WEIGHT); + SvxWeightItem aWeight(WEIGHT_BOLD, EE_CHAR_WEIGHT); aItemSet.Put(aWeight); rEE.QuickSetAttribs(aItemSet, aSel); } @@ -369,7 +370,7 @@ void ScExportTest::testRichTextExportODS() { // Set the 'Italic' part italic. SfxItemSet aItemSet = rEE.GetEmptyItemSet(); - SvxPostureItem aItalic(ITALIC_NORMAL, ATTR_FONT_POSTURE); + SvxPostureItem aItalic(ITALIC_NORMAL, EE_CHAR_ITALIC); aItemSet.Put(aItalic); aSel.nStartPos = 9; aSel.nEndPos = 15; |