[Libreoffice-commits] core.git: sw/qa
Miklos Vajna
vmiklos at suse.cz
Wed Jun 5 00:58:25 PDT 2013
dev/null |binary
sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 9 ---------
2 files changed, 9 deletions(-)
New commits:
commit 3d08f8153a3e7dc6e37aa8b26876ac227c75b1df
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Wed Jun 5 09:53:37 2013 +0200
sw: drop redundant page-background test from ooxmlimport
Commit 515701a1ff18d04ede235bef862c465adf41062f copy&pasted the test to
the ooxmlexport suite, which tests the import already.
Change-Id: I5f60b7c8f8b80189f66ac562f2c338344d91394f
diff --git a/sw/qa/extras/ooxmlimport/data/page-background.docx b/sw/qa/extras/ooxmlimport/data/page-background.docx
deleted file mode 100644
index 8c1f2ebd..0000000
Binary files a/sw/qa/extras/ooxmlimport/data/page-background.docx and /dev/null differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index c422ecc..601f154 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -113,7 +113,6 @@ public:
void testN592908_Picture();
void testN779630();
void testIndentation();
- void testPageBackground();
void testWatermark();
void testPageBorderShadow();
void testN816593();
@@ -198,7 +197,6 @@ void Test::run()
{"n592908-picture.docx", &Test::testN592908_Picture},
{"n779630.docx", &Test::testN779630},
{"indentation.docx", &Test::testIndentation},
- {"page-background.docx", &Test::testPageBackground},
{"watermark.docx", &Test::testWatermark},
{"page-border-shadow.docx", &Test::testPageBorderShadow},
{"n816593.docx", &Test::testN816593},
@@ -1391,13 +1389,6 @@ void Test::testIndentation()
CPPUNIT_ASSERT_EQUAL(text::WritingMode2::LR_TB, getProperty<sal_Int16>(xPropertySet, "WritingMode"));
}
-void Test::testPageBackground()
-{
- // The problem was that <w:background w:color="92D050"/> was ignored.
- uno::Reference<beans::XPropertySet> xPageStyle(getStyles("PageStyles")->getByName(DEFAULT_STYLE), uno::UNO_QUERY);
- CPPUNIT_ASSERT_EQUAL(sal_Int32(0x92D050), getProperty<sal_Int32>(xPageStyle, "BackColor"));
-}
-
void Test::testWatermark()
{
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
More information about the Libreoffice-commits
mailing list