diff options
-rw-r--r-- | sw/qa/extras/htmlexport/data/tdf132739.odt | bin | 0 -> 8832 bytes | |||
-rw-r--r-- | sw/qa/extras/htmlexport/htmlexport.cxx | 12 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sw/qa/extras/htmlexport/data/tdf132739.odt b/sw/qa/extras/htmlexport/data/tdf132739.odt Binary files differnew file mode 100644 index 000000000000..6156aca93bd0 --- /dev/null +++ b/sw/qa/extras/htmlexport/data/tdf132739.odt diff --git a/sw/qa/extras/htmlexport/htmlexport.cxx b/sw/qa/extras/htmlexport/htmlexport.cxx index e58641ac6f8a..cd680b1ad12b 100644 --- a/sw/qa/extras/htmlexport/htmlexport.cxx +++ b/sw/qa/extras/htmlexport/htmlexport.cxx @@ -1021,6 +1021,18 @@ DECLARE_HTMLEXPORT_TEST(testFieldShade, "field-shade.odt") assertXPath(pDoc, "/html/body/p[2]/span/span", 0); } +DECLARE_HTMLEXPORT_TEST(testTdf132739, "tdf132739.odt") +{ + htmlDocUniquePtr pDoc = parseHtml(maTempFile); + CPPUNIT_ASSERT(pDoc); + + // Without the fix in place, this test would have failed with + // - Expected: background: #5983b0; border: 1px solid #333333; padding: 0.04in + // - Actual : background: #5983b0 + assertXPath(pDoc, "/html/body/table/tr[1]/td", "style", + "background: #5983b0; border: 1px solid #333333; padding: 0.04in"); +} + DECLARE_HTMLEXPORT_TEST(testFieldShadeReqIf, "field-shade-reqif.odt") { htmlDocUniquePtr pDoc = parseHtml(maTempFile); |