[Libreoffice-commits] core.git: sw/qa
Varun
varun.dhall at studentpartner.com
Fri Jun 12 15:02:16 PDT 2015
sw/qa/extras/odfexport/data/redlineTextFrame.odt |binary
sw/qa/extras/odfexport/odfexport.cxx | 9 +++++++++
2 files changed, 9 insertions(+)
New commits:
commit f36ac1aa3bef5ba218f3dae24f260ce7e4afba95
Author: Varun <varun.dhall at studentpartner.com>
Date: Fri Jun 12 21:31:26 2015 +0530
Added test for redline with as-char frame
fixed by commits 4dd2e61 and fae87e0
Change-Id: Ib6ca689af61187b32283753f80abaed96406f409
Reviewed-by: Michael Stahl <mstahl at redhat.com>
diff --git a/sw/qa/extras/odfexport/data/redlineTextFrame.odt b/sw/qa/extras/odfexport/data/redlineTextFrame.odt
new file mode 100644
index 0000000..0986c37
Binary files /dev/null and b/sw/qa/extras/odfexport/data/redlineTextFrame.odt differ
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index 68c0e5a..9de166c 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -197,6 +197,15 @@ DECLARE_ODFEXPORT_TEST(testFramebackgrounds, "framebackgrounds.odt")
}
}
+DECLARE_ODFEXPORT_TEST(testredlineTextFrame, "redlineTextFrame.odt")
+{
+ //Note this is for a crash test
+ //Counting the Number of Frames and checking with the expected count
+ uno::Reference<text::XTextFramesSupplier> xTextFramesSupplier(mxComponent, uno::UNO_QUERY);
+ uno::Reference<container::XIndexAccess> xIndexAccess(xTextFramesSupplier->getTextFrames(), uno::UNO_QUERY);
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(1), xIndexAccess->getCount());
+}
+
DECLARE_ODFEXPORT_TEST(testFdo38244, "fdo38244.odt")
{
// See ooxmlexport's testFdo38244().
More information about the Libreoffice-commits
mailing list