Change-Id: If73c0259cf11ce5c8b5f2af19ac5abb084d78b0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186730
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini
2025-06-20 08:56:31 +02:00
committed by Julien Nabet
parent 0e095a3e24
commit 93923da4b4
+3 -3
View File
@@ -124,7 +124,7 @@ void XAccessibleTextTester::testGetCharacterAttributes()
const sal_Int32 nCharCount = m_xText->getCharacterCount();
const css::uno::Sequence<OUString> aAttrs;
// check that trying to get character attribtes at invalid index results in IndexOutOfBoundsException
// check that trying to get character attributes at invalid index results in IndexOutOfBoundsException
for (sal_Int32 nPos : { sal_Int32(-1), nCharCount })
{
try
@@ -148,7 +148,7 @@ void XAccessibleTextTester::testGetCharacterAttributes()
/**
* Calls the method with wrong indices and with a correct index,
* checks whether character bounds are within compontent bounds.
* checks whether character bounds are within component bounds.
*/
void XAccessibleTextTester::testGetCharacterBounds()
{
@@ -338,7 +338,7 @@ void XAccessibleTextTester::testSetSelection()
// OK; this is expected
}
// check that setting selection using valid indeces does not trigger exception
// check that setting selection using valid indices does not trigger exception
if (nCharCount > 2)
{
m_xText->setSelection(1, nCharCount - 1);