sw/qa/extras/ww8export/data/zoomtype.doc |binary sw/qa/extras/ww8export/ww8export.cxx | 11 +++++++++++ 2 files changed, 11 insertions(+)
New commits: commit f536699304e951ab2e104118ad36335ee0f1b268 Author: Justin Luth <justin_l...@sil.org> Date: Mon Jan 5 19:34:32 2015 +0300 WW8 filter: zoom type testcase Change-Id: I57f90a84b49c4a3bd49c66e23d059939684a6aef Reviewed-on: https://gerrit.libreoffice.org/13765 Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> Tested-by: Miklos Vajna <vmik...@collabora.co.uk> diff --git a/sw/qa/extras/ww8export/data/zoomtype.doc b/sw/qa/extras/ww8export/data/zoomtype.doc new file mode 100644 index 0000000..8823754 Binary files /dev/null and b/sw/qa/extras/ww8export/data/zoomtype.doc differ diff --git a/sw/qa/extras/ww8export/ww8export.cxx b/sw/qa/extras/ww8export/ww8export.cxx index d16d781..7d8a5b8 100644 --- a/sw/qa/extras/ww8export/ww8export.cxx +++ b/sw/qa/extras/ww8export/ww8export.cxx @@ -18,6 +18,7 @@ #include <com/sun/star/table/TableBorder2.hpp> #include <com/sun/star/text/GraphicCrop.hpp> #include <com/sun/star/text/XFormField.hpp> +#include <com/sun/star/view/DocumentZoomType.hpp> class Test : public SwModelTestBase { @@ -115,6 +116,16 @@ DECLARE_WW8EXPORT_TEST(testZoom, "zoom.doc") CPPUNIT_ASSERT_EQUAL(sal_Int16(42), nValue); } +DECLARE_WW8EXPORT_TEST(testZoomType, "zoomtype.doc") +{ + uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY); + uno::Reference<view::XViewSettingsSupplier> xViewSettingsSupplier(xModel->getCurrentController(), uno::UNO_QUERY); + uno::Reference<beans::XPropertySet> xPropertySet(xViewSettingsSupplier->getViewSettings()); + sal_Int16 nValue = 0; + xPropertySet->getPropertyValue("ZoomType") >>= nValue; + CPPUNIT_ASSERT_EQUAL(sal_Int16(view::DocumentZoomType::PAGE_WIDTH), nValue); +} + DECLARE_WW8EXPORT_TEST(test56513, "fdo56513.doc") { CPPUNIT_ASSERT_EQUAL(OUString("This is the header of the first section"), parseDump("/root/page[1]/header/txt/text()")); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits