diff options
author | Justin Luth <justin.luth@collabora.com> | 2018-10-04 17:55:42 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-10-08 11:24:48 +0200 |
commit | b118760cade7350b91e56d92eec22b8d9129c4a4 (patch) | |
tree | d384672033f747b85c08b09971c1f27c8083013f /sc | |
parent | 78b11422fa15f7d690b8a5398b03b7ce6897c49d (diff) |
tdf#120301 oox: lclIsWhiteSpace should return true for a space
Reviewed-on: https://gerrit.libreoffice.org/61388
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
(cherry picked from commit 2cae2ecfef47d8dd10647c10f9577392c1887d3a)
Change-Id: I72c79c1fed4d9a91bf02024eef23cd3b1a58632e
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/data/xlsx/tdf120301_xmlSpaceParsing.xlsx | bin | 0 -> 11519 bytes | |||
-rw-r--r-- | sc/qa/unit/subsequent_filters-test.cxx | 19 |
2 files changed, 19 insertions, 0 deletions
diff --git a/sc/qa/unit/data/xlsx/tdf120301_xmlSpaceParsing.xlsx b/sc/qa/unit/data/xlsx/tdf120301_xmlSpaceParsing.xlsx Binary files differnew file mode 100644 index 000000000000..0677a0cf2eb2 --- /dev/null +++ b/sc/qa/unit/data/xlsx/tdf120301_xmlSpaceParsing.xlsx diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index ea212bc659cb..56cc573a91a1 100644 --- a/sc/qa/unit/subsequent_filters-test.cxx +++ b/sc/qa/unit/subsequent_filters-test.cxx @@ -233,6 +233,7 @@ public: void testPageScalingXLSX(); void testActiveXCheckboxXLSX(); + void testtdf120301_xmlSpaceParsingXLSX(); #ifdef UNX void testUnicodeFileNameGnumeric(); #endif @@ -357,6 +358,7 @@ public: CPPUNIT_TEST(testPageScalingXLSX); CPPUNIT_TEST(testActiveXCheckboxXLSX); + CPPUNIT_TEST(testtdf120301_xmlSpaceParsingXLSX); #ifdef UNX CPPUNIT_TEST(testUnicodeFileNameGnumeric); #endif @@ -3641,6 +3643,23 @@ void ScFiltersTest::testActiveXCheckboxXLSX() xDocSh->DoClose(); } +void ScFiltersTest::testtdf120301_xmlSpaceParsingXLSX() +{ + ScDocShellRef xDocSh = loadDoc("tdf120301_xmlSpaceParsing.", FORMAT_XLSX); + uno::Reference< frame::XModel > xModel = xDocSh->GetModel(); + uno::Reference< sheet::XSpreadsheetDocument > xDoc(xModel, UNO_QUERY_THROW); + uno::Reference< container::XIndexAccess > xIA(xDoc->getSheets(), UNO_QUERY_THROW); + uno::Reference< drawing::XDrawPageSupplier > xDrawPageSupplier( xIA->getByIndex(0), UNO_QUERY_THROW); + uno::Reference< container::XIndexAccess > xIA_DrawPage(xDrawPageSupplier->getDrawPage(), UNO_QUERY_THROW); + + uno::Reference< drawing::XControlShape > xControlShape(xIA_DrawPage->getByIndex(0), UNO_QUERY_THROW); + uno::Reference< beans::XPropertySet > XPropSet( xControlShape->getControl(), uno::UNO_QUERY_THROW ); + OUString sCaption; + XPropSet->getPropertyValue("Label") >>= sCaption; + CPPUNIT_ASSERT_EQUAL(OUString("Check Box 1"), sCaption); + xDocSh->DoClose(); +} + ScFiltersTest::ScFiltersTest() : ScBootstrapFixture( "sc/qa/unit/data" ) { |