diff options
author | Varun <varun.dhall@studentpartner.com> | 2015-06-12 21:31:26 +0530 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-06-12 23:55:42 +0200 |
commit | f36ac1aa3bef5ba218f3dae24f260ce7e4afba95 (patch) | |
tree | af6dbaddc27de2bfa14295635146320b63bcee2c /sw | |
parent | 22009c987b88fe9c4f0b5d65555252c05f44b80d (diff) |
Added test for redline with as-char frame
fixed by commits 4dd2e61 and fae87e0
Change-Id: Ib6ca689af61187b32283753f80abaed96406f409
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/odfexport/data/redlineTextFrame.odt | bin | 0 -> 8560 bytes | |||
-rw-r--r-- | sw/qa/extras/odfexport/odfexport.cxx | 9 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/data/redlineTextFrame.odt b/sw/qa/extras/odfexport/data/redlineTextFrame.odt Binary files differnew file mode 100644 index 000000000000..0986c3792fdb --- /dev/null +++ b/sw/qa/extras/odfexport/data/redlineTextFrame.odt diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx index 68c0e5a1c2b9..9de166ca63cd 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(). |