Kaydet (Commit) 3d08f815 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: drop redundant page-background test from ooxmlimport

Commit 515701a1 copy&pasted the test to
the ooxmlexport suite, which tests the import already.

Change-Id: I5f60b7c8f8b80189f66ac562f2c338344d91394f
üst 95c0d568
...@@ -113,7 +113,6 @@ public: ...@@ -113,7 +113,6 @@ public:
void testN592908_Picture(); void testN592908_Picture();
void testN779630(); void testN779630();
void testIndentation(); void testIndentation();
void testPageBackground();
void testWatermark(); void testWatermark();
void testPageBorderShadow(); void testPageBorderShadow();
void testN816593(); void testN816593();
...@@ -198,7 +197,6 @@ void Test::run() ...@@ -198,7 +197,6 @@ void Test::run()
{"n592908-picture.docx", &Test::testN592908_Picture}, {"n592908-picture.docx", &Test::testN592908_Picture},
{"n779630.docx", &Test::testN779630}, {"n779630.docx", &Test::testN779630},
{"indentation.docx", &Test::testIndentation}, {"indentation.docx", &Test::testIndentation},
{"page-background.docx", &Test::testPageBackground},
{"watermark.docx", &Test::testWatermark}, {"watermark.docx", &Test::testWatermark},
{"page-border-shadow.docx", &Test::testPageBorderShadow}, {"page-border-shadow.docx", &Test::testPageBorderShadow},
{"n816593.docx", &Test::testN816593}, {"n816593.docx", &Test::testN816593},
...@@ -1391,13 +1389,6 @@ void Test::testIndentation() ...@@ -1391,13 +1389,6 @@ void Test::testIndentation()
CPPUNIT_ASSERT_EQUAL(text::WritingMode2::LR_TB, getProperty<sal_Int16>(xPropertySet, "WritingMode")); 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() void Test::testWatermark()
{ {
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY); uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment