diff options
author | Balazs Varga <balazs.varga.extern@allotropia.de> | 2024-05-07 14:28:05 +0200 |
---|---|---|
committer | Balazs Varga <balazs.varga.extern@allotropia.de> | 2024-05-13 17:20:20 +0200 |
commit | b3a9032378528a691bc97b71a7464712e18c8f4e (patch) | |
tree | f62ca67ca111ee2e805fecf2b6a93ae151b049e6 /test | |
parent | 96f74d85983fd693d349d593c4389a8f990fdaaa (diff) |
tdf#157657 - sc: add option to make data validity case-sensitive
Add option to check data validity with case sensitive and case
insensitive. The default set would remain the original case insensitive
mode for data validity.
Change-Id: Ic4fe56e2b31b7fc348b742f3b95fb44cd35bc49d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167280
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/sheet/tablevalidation.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/source/sheet/tablevalidation.cxx b/test/source/sheet/tablevalidation.cxx index 4383019602e5..3069c6c06553 100644 --- a/test/source/sheet/tablevalidation.cxx +++ b/test/source/sheet/tablevalidation.cxx @@ -124,6 +124,16 @@ void TableValidation::testTableValidationProperties() CPPUNIT_ASSERT(xTableValidation->getPropertyValue(propName) >>= aIgnoreBlankCells); CPPUNIT_ASSERT_MESSAGE("Unable to set property value IgnoreBlankCells", !aIgnoreBlankCells); + propName = "IsCaseSensitive"; + bool bCaseSensitive = false; + CPPUNIT_ASSERT(xTableValidation->getPropertyValue(propName) >>= bCaseSensitive); + CPPUNIT_ASSERT_MESSAGE("Unable to get property value IsCaseSensitive", !bCaseSensitive); + + aNewValue <<= true; + xTableValidation->setPropertyValue(propName, aNewValue); + CPPUNIT_ASSERT(xTableValidation->getPropertyValue(propName) >>= bCaseSensitive); + CPPUNIT_ASSERT_MESSAGE("Unable to set property value IsCaseSensitive", bCaseSensitive); + propName = "ErrorAlertStyle"; aValue = xTableValidation->getPropertyValue(propName); sheet::ValidationAlertStyle aValidationAlertStyle; |