diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-10-19 12:06:34 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-10-19 12:37:30 +0200 |
commit | 1becc60df9caa9fef5011ae877c832fe8bcefb6c (patch) | |
tree | b0bfc401c6f184792806c7868b1e57aa840698a5 /sw/qa | |
parent | 9e51601833718b529fe2fe5446ec0470d4ee5173 (diff) |
import RTF_DPPOLYLINE
Change-Id: I65f1ddb9d0d691c126c8e94b2e60c8309b0d33ff
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/rtfimport/data/dppolyline.rtf | 6 | ||||
-rw-r--r-- | sw/qa/extras/rtfimport/rtfimport.cxx | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfimport/data/dppolyline.rtf b/sw/qa/extras/rtfimport/data/dppolyline.rtf new file mode 100644 index 000000000000..0f6b8ce3d626 --- /dev/null +++ b/sw/qa/extras/rtfimport/data/dppolyline.rtf @@ -0,0 +1,6 @@ +{\rtf1 +{\*\do\dobxpage\dobypara\dodhgt8192\dppolyline\dppolycount2\dpptx11\dppty11\dpptx11\dppty209\dpx10885\dpy8458\dpxsize22\dpysize221} +{\*\do\dobxpage\dobypara\dodhgt8192\dppolyline\dppolycount2\dpptx1258\dppty11\dpptx11\dppty11\dpx9637\dpy8657\dpxsize1269\dpysize22} +{\*\do\dobxpage\dobypara\dodhgt8192\dppolyline\dppolycount2\dpptx11\dppty11\dpptx294\dppty68\dpx9637\dpy8657\dpxsize306\dpysize79} +{\*\do\dobxpage\dobypara\dodhgt8192\dppolyline\dppolycount2\dpptx11\dppty68\dpptx294\dppty11\dpx9637\dpy8600\dpxsize306\dpysize79} +} diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx index 1ebadad841e7..9db7579be6a7 100644 --- a/sw/qa/extras/rtfimport/rtfimport.cxx +++ b/sw/qa/extras/rtfimport/rtfimport.cxx @@ -120,6 +120,7 @@ public: void testDoDhgt(); void testDplinehollow(); void testLeftmarginDefault(); + void testDppolyline(); CPPUNIT_TEST_SUITE(Test); #if !defined(MACOSX) && !defined(WNT) @@ -178,6 +179,7 @@ public: CPPUNIT_TEST(testDoDhgt); CPPUNIT_TEST(testDplinehollow); CPPUNIT_TEST(testLeftmarginDefault); + CPPUNIT_TEST(testDppolyline); #endif CPPUNIT_TEST_SUITE_END(); @@ -945,6 +947,15 @@ void Test::testLeftmarginDefault() CPPUNIT_ASSERT_EQUAL(sal_Int32(2540), getProperty<sal_Int32>(getStyles("PageStyles")->getByName("Default"), "LeftMargin")); } +void Test::testDppolyline() +{ + // This was completely ignored, for now, just make sure we have all 4 lines. + load("dppolyline.rtf"); + uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY); + uno::Reference<container::XIndexAccess> xDraws(xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL(sal_Int32(4), xDraws->getCount()); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Test); CPPUNIT_PLUGIN_IMPLEMENT(); |