Fix typos

Change-Id: I38b80f7bbf93192b7e2e00a426b72b77eb33bf1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210568
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini
2026-09-10 21:28:54 +02:00
committed by Julien Nabet
parent 6e696502fc
commit f1c58464ac
19 changed files with 55 additions and 55 deletions
+8 -8
View File
@@ -196,7 +196,7 @@ namespace rtl_ustr
CPPUNIT_TEST(compare_003); CPPUNIT_TEST(compare_003);
CPPUNIT_TEST(compare_004); CPPUNIT_TEST(compare_004);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; // class compare }; // class shortenedCompareIgnoreAsciiCase_WithLength
// //
// //
@@ -389,7 +389,7 @@ namespace rtl_ustr
CPPUNIT_TEST(indexOfStr_001); CPPUNIT_TEST(indexOfStr_001);
CPPUNIT_TEST(indexOfStr_002); CPPUNIT_TEST(indexOfStr_002);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; // class compare }; // class indexOfStr
class lastIndexOfStr : public CppUnit::TestFixture class lastIndexOfStr : public CppUnit::TestFixture
{ {
@@ -508,7 +508,7 @@ namespace rtl_ustr
CPPUNIT_TEST(replaceChar_WithLength_001); CPPUNIT_TEST(replaceChar_WithLength_001);
CPPUNIT_TEST(replaceChar_WithLength_002); CPPUNIT_TEST(replaceChar_WithLength_002);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; // class replaceChar }; // class replaceChar_WithLength
class toAsciiLowerCase : public CppUnit::TestFixture class toAsciiLowerCase : public CppUnit::TestFixture
{ {
@@ -530,7 +530,7 @@ namespace rtl_ustr
CPPUNIT_TEST_SUITE(toAsciiLowerCase); CPPUNIT_TEST_SUITE(toAsciiLowerCase);
CPPUNIT_TEST(toAsciiLowerCase_001); CPPUNIT_TEST(toAsciiLowerCase_001);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; // class replaceChar }; // class toAsciiLowerCase
class toAsciiLowerCase_WithLength : public CppUnit::TestFixture class toAsciiLowerCase_WithLength : public CppUnit::TestFixture
{ {
@@ -558,7 +558,7 @@ namespace rtl_ustr
CPPUNIT_TEST(toAsciiLowerCase_WithLength_000); CPPUNIT_TEST(toAsciiLowerCase_WithLength_000);
CPPUNIT_TEST(toAsciiLowerCase_WithLength_001); CPPUNIT_TEST(toAsciiLowerCase_WithLength_001);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; // class replaceChar }; // class toAsciiLowerCase_WithLength
class toAsciiUpperCase : public CppUnit::TestFixture class toAsciiUpperCase : public CppUnit::TestFixture
{ {
@@ -580,7 +580,7 @@ namespace rtl_ustr
CPPUNIT_TEST_SUITE(toAsciiUpperCase); CPPUNIT_TEST_SUITE(toAsciiUpperCase);
CPPUNIT_TEST(toAsciiUpperCase_001); CPPUNIT_TEST(toAsciiUpperCase_001);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; // class replaceChar }; // class toAsciiUpperCase
class toAsciiUpperCase_WithLength : public CppUnit::TestFixture class toAsciiUpperCase_WithLength : public CppUnit::TestFixture
{ {
@@ -609,7 +609,7 @@ namespace rtl_ustr
CPPUNIT_TEST(toAsciiUpperCase_WithLength_000); CPPUNIT_TEST(toAsciiUpperCase_WithLength_000);
CPPUNIT_TEST(toAsciiUpperCase_WithLength_001); CPPUNIT_TEST(toAsciiUpperCase_WithLength_001);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; // class replaceChar }; // class toAsciiUpperCase_WithLength
class trim_WithLength : public CppUnit::TestFixture class trim_WithLength : public CppUnit::TestFixture
{ {
@@ -1041,7 +1041,7 @@ namespace rtl_ustr
CPPUNIT_TEST_SUITE(getToken); CPPUNIT_TEST_SUITE(getToken);
CPPUNIT_TEST(getToken_000); CPPUNIT_TEST(getToken_000);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; // class ascii_compareIgnoreAsciiCase }; // class getToken
CPPUNIT_TEST_SUITE_REGISTRATION(rtl_ustr::compare); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_ustr::compare);
CPPUNIT_TEST_SUITE_REGISTRATION(rtl_ustr::compareIgnoreAsciiCase); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_ustr::compareIgnoreAsciiCase);
+4 -4
View File
@@ -43,7 +43,7 @@ public:
rtlRandomPool aPool = rtl_random_createPool(); rtlRandomPool aPool = rtl_random_createPool();
// LLA: seems to be that another test is not possible for createPool() // LLA: it seems that no other test is possible for createPool()
CPPUNIT_ASSERT_MESSAGE("create failed", aPool != nullptr); CPPUNIT_ASSERT_MESSAGE("create failed", aPool != nullptr);
rtl_random_destroyPool(aPool); rtl_random_destroyPool(aPool);
@@ -72,7 +72,7 @@ public:
{ {
rtlRandomPool aPool = rtl_random_createPool(); rtlRandomPool aPool = rtl_random_createPool();
// LLA: seems to be that another test is not possible for createPool() // LLA: it seems that no other test is possible for createPool()
CPPUNIT_ASSERT_MESSAGE("create failed", aPool != nullptr); CPPUNIT_ASSERT_MESSAGE("create failed", aPool != nullptr);
rtl_random_destroyPool(aPool); rtl_random_destroyPool(aPool);
@@ -303,7 +303,7 @@ public:
aStat.build(nCountMax); aStat.build(nCountMax);
aStat.print(); aStat.print();
CPPUNIT_ASSERT_MESSAGE("deviation should be less average", aStat.getMaxDeviation() < aStat.getAverage()); CPPUNIT_ASSERT_MESSAGE("deviation should be less than average", aStat.getMaxDeviation() < aStat.getAverage());
rtl_random_destroyPool(aPool); rtl_random_destroyPool(aPool);
} }
@@ -335,7 +335,7 @@ public:
aStat.build(nCountMax * nBufLen); aStat.build(nCountMax * nBufLen);
aStat.print(); aStat.print();
CPPUNIT_ASSERT_MESSAGE("deviation should be less average", aStat.getMaxDeviation() < aStat.getAverage()); CPPUNIT_ASSERT_MESSAGE("deviation should be less than average", aStat.getMaxDeviation() < aStat.getAverage());
rtl_random_destroyPool(aPool); rtl_random_destroyPool(aPool);
} }
+9 -9
View File
@@ -110,7 +110,7 @@ public:
sal_uInt8 pNamedUUID[16], pNamedUUID2[16]; sal_uInt8 pNamedUUID[16], pNamedUUID2[16];
// Same name does generate the same uuid // Same name generates the same uuid
rtl_String *pName = nullptr; rtl_String *pName = nullptr;
rtl_string_newFromStr( &pName , "this is a bla.blubs.DNS-Name" ); rtl_string_newFromStr( &pName , "this is a bla.blubs.DNS-Name" );
rtl_createNamedUuid( pNamedUUID , NameSpace_DNS , pName ); rtl_createNamedUuid( pNamedUUID , NameSpace_DNS , pName );
@@ -119,22 +119,22 @@ public:
CPPUNIT_ASSERT_EQUAL_MESSAGE( "Same name should generate the same uuid", sal_Int32(0), rtl_compareUuid( pNamedUUID , pNamedUUID2 ) ); CPPUNIT_ASSERT_EQUAL_MESSAGE( "Same name should generate the same uuid", sal_Int32(0), rtl_compareUuid( pNamedUUID , pNamedUUID2 ) );
CPPUNIT_ASSERT_MESSAGE( "Same name should generate the same uuid", ! memcmp( pNamedUUID , pPriorCalculatedUUID , 16 ) ); CPPUNIT_ASSERT_MESSAGE( "Same name should generate the same uuid", ! memcmp( pNamedUUID , pPriorCalculatedUUID , 16 ) );
// Different names does not generate the same uuid // Different names do not generate the same uuid
rtl_string_newFromStr( &pName , "this is a bla.blubs.DNS-Namf" ); rtl_string_newFromStr( &pName , "this is a bla.blubs.DNS-Namf" );
rtl_createNamedUuid( pNamedUUID2 , NameSpace_DNS , pName ); rtl_createNamedUuid( pNamedUUID2 , NameSpace_DNS , pName );
CPPUNIT_ASSERT_MESSAGE("Different names does not generate the same uuid.", memcmp( pNamedUUID , pNamedUUID2 , 16 ) ); CPPUNIT_ASSERT_MESSAGE("Different names do not generate the same uuid.", memcmp( pNamedUUID , pNamedUUID2 , 16 ) );
// the same name with different namespace uuid produces different uuids // The same name with different namespace uuid produces different uuids
rtl_createNamedUuid( pNamedUUID , NameSpace_URL , pName ); rtl_createNamedUuid( pNamedUUID , NameSpace_URL , pName );
CPPUNIT_ASSERT_MESSAGE( " same name with different namespace uuid produces different uuids", memcmp( pNamedUUID , pNamedUUID2 , 16 )); CPPUNIT_ASSERT_MESSAGE( "Same name with different namespace uuid produces different uuids", memcmp( pNamedUUID , pNamedUUID2 , 16 ));
CPPUNIT_ASSERT_MESSAGE( " same name with different namespace uuid produces different uuids", rtl_compareUuid( pNamedUUID , pNamedUUID2 ) != 0); CPPUNIT_ASSERT_MESSAGE( "Same name with different namespace uuid produces different uuids", rtl_compareUuid( pNamedUUID , pNamedUUID2 ) != 0);
//test compareUuid // test compareUuid
if ( rtl_compareUuid( pNamedUUID , pNamedUUID2 ) > 0 ) if ( rtl_compareUuid( pNamedUUID , pNamedUUID2 ) > 0 )
{ CPPUNIT_ASSERT_MESSAGE( " compare uuids", rtl_compareUuid( pNamedUUID2 , pNamedUUID ) < 0); { CPPUNIT_ASSERT_MESSAGE( "compare uuids", rtl_compareUuid( pNamedUUID2 , pNamedUUID ) < 0);
} }
else else
CPPUNIT_ASSERT_MESSAGE( " compare uuids", rtl_compareUuid( pNamedUUID2 , pNamedUUID ) > 0); CPPUNIT_ASSERT_MESSAGE( "compare uuids", rtl_compareUuid( pNamedUUID2 , pNamedUUID ) > 0);
rtl_string_release( pName ); rtl_string_release( pName );
} }
+2 -2
View File
@@ -127,7 +127,7 @@ namespace test_comtools
CPPUNIT_ASSERT_EQUAL_MESSAGE("COMReference should be empty", static_cast<IUnknown *>(nullptr), r.get()); CPPUNIT_ASSERT_EQUAL_MESSAGE("COMReference should be empty", static_cast<IUnknown *>(nullptr), r.get());
r = comObjectSource(); r = comObjectSource();
CPPUNIT_ASSERT_MESSAGE("COMReference should be empty", r.get() != nullptr); CPPUNIT_ASSERT_MESSAGE("COMReference should not be empty", r.get() != nullptr);
CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong reference count 1 is expected", ULONG(1), reinterpret_cast<COMObject*>(r.get())->GetRefCount()); CPPUNIT_ASSERT_EQUAL_MESSAGE("Wrong reference count 1 is expected", ULONG(1), reinterpret_cast<COMObject*>(r.get())->GetRefCount());
} }
@@ -240,7 +240,7 @@ namespace test_comtools
CPPUNIT_TEST_SUITE_REGISTRATION(test_comtools::test_COMReference); CPPUNIT_TEST_SUITE_REGISTRATION(test_comtools::test_COMReference);
} // namespace rtl_OUString } // namespace test_comtools
CPPUNIT_PLUGIN_IMPLEMENT(); CPPUNIT_PLUGIN_IMPLEMENT();
+3 -3
View File
@@ -241,7 +241,7 @@ public:
const OUString& GetTableType() const { return aTableType; } const OUString& GetTableType() const { return aTableType; }
void SetContainer( ScDBDataContainerBase* pContainer ) { mpContainer = pContainer; } void SetContainer( ScDBDataContainerBase* pContainer ) { mpContainer = pContainer; }
/** Returns header row range if has headers, else invalid range. */ /** Returns header row range if it has headers, else invalid range. */
ScRange GetHeaderArea() const; ScRange GetHeaderArea() const;
void StartTableColumnNamesListener(); void StartTableColumnNamesListener();
void EndTableColumnNamesListener(); void EndTableColumnNamesListener();
@@ -270,8 +270,8 @@ public:
*/ */
sal_Int32 GetColumnNameOffset( const OUString& rName ) const; sal_Int32 GetColumnNameOffset( const OUString& rName ) const;
/** Returns table column name if nCol is within column range and name /** Returns table column name if nCol is within column range and the name
is stored, else empty string. */ is stored, else an empty string. */
const OUString & GetTableColumnName( SCCOL nCol ) const; const OUString & GetTableColumnName( SCCOL nCol ) const;
OUString GetSourceString() const; OUString GetSourceString() const;
+4 -4
View File
@@ -206,7 +206,7 @@ public:
/** /**
* Transfer the ownership of the passed token array instance to the * Transfer the ownership of the passed token array instance to the
* formula cell being constructed. The caller <i>must not</i> pass a NULL * formula cell being constructed. The caller <i>must not</i> pass a nullptr
* token array pointer. * token array pointer.
*/ */
SC_DLLPUBLIC ScFormulaCell( ScDocument& rDoc, const ScAddress& rPos, std::unique_ptr<ScTokenArray> pArray, SC_DLLPUBLIC ScFormulaCell( ScDocument& rDoc, const ScAddress& rPos, std::unique_ptr<ScTokenArray> pArray,
@@ -222,7 +222,7 @@ public:
ScMatrixMode = ScMatrixMode::NONE ); ScMatrixMode = ScMatrixMode::NONE );
/** With formula string and grammar to compile with. /** With formula string and grammar to compile with.
formula::FormulaGrammar::GRAM_DEFAULT effectively isformula::FormulaGrammar::GRAM_NATIVE_UI that formula::FormulaGrammar::GRAM_DEFAULT effectively is formula::FormulaGrammar::GRAM_NATIVE_UI that
also includes formula::FormulaGrammar::CONV_UNSPECIFIED, therefore uses the address also includes formula::FormulaGrammar::CONV_UNSPECIFIED, therefore uses the address
convention associated with rPos::nTab by default. */ convention associated with rPos::nTab by default. */
SC_DLLPUBLIC ScFormulaCell( ScDocument& rDoc, const ScAddress& rPos, SC_DLLPUBLIC ScFormulaCell( ScDocument& rDoc, const ScAddress& rPos,
@@ -363,13 +363,13 @@ public:
*/ */
formula::FormulaCallableRef GetRawCallable() const; formula::FormulaCallableRef GetRawCallable() const;
/** /**
* Get a value without potentially triggering re-calculation. May return NULL if the * Get a value without potentially triggering re-calculation. May return nullptr if the
* result is not a token. * result is not a token.
*/ */
formula::FormulaConstTokenRef GetRawResultToken() const; formula::FormulaConstTokenRef GetRawResultToken() const;
/** /**
* Get a copy of the token without potentially triggering re-calculation. Will not * Get a copy of the token without potentially triggering re-calculation. Will not
* return NULL, but the caller is responsible for the reference. * return nullptr, but the caller is responsible for the reference.
*/ */
formula::FormulaTokenRef CloneRawResultToken() const; formula::FormulaTokenRef CloneRawResultToken() const;
const ScMatrix* GetMatrix(); const ScMatrix* GetMatrix();
+1 -1
View File
@@ -224,7 +224,7 @@ public:
void UpdateGrow(const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY); void UpdateGrow(const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY);
/** Compile those names that couldn't be resolved during loading and /** Compile those names that couldn't be resolved during loading and
inserting because they may have referred a name that was inserted later. inserting because they may have referred to a name that was inserted later.
*/ */
void CompileUnresolvedXML( sc::CompileFormulaContext& rCxt ); void CompileUnresolvedXML( sc::CompileFormulaContext& rCxt );
+1 -1
View File
@@ -283,7 +283,7 @@ struct SC_DLLPUBLIC ScRangeUpdater
deleted sheets, within the deleted range to the front of that or set to deleted sheets, within the deleted range to the front of that or set to
0 (as there is always at least one sheet in a document) if the position 0 (as there is always at least one sheet in a document) if the position
would result in a negative value, e.g. if position was 0 and (only) would result in a negative value, e.g. if position was 0 and (only)
sheet 0 is deleted it would had become -1. sheet 0 is deleted it would have become -1.
*/ */
static void UpdateDeleteTab(ScAddress& rAddr, const sc::RefUpdateDeleteTabContext& rCxt); static void UpdateDeleteTab(ScAddress& rAddr, const sc::RefUpdateDeleteTabContext& rCxt);
}; };
+1 -1
View File
@@ -172,7 +172,7 @@
#define SCSTR_UNDO_CELL_ANCHOR NC_("SCSTR_UNDO_CELL_ANCHOR", "Cell Anchor" ) #define SCSTR_UNDO_CELL_ANCHOR NC_("SCSTR_UNDO_CELL_ANCHOR", "Cell Anchor" )
#define SCSTR_CONDITION NC_("SCSTR_CONDITION", "Condition ") #define SCSTR_CONDITION NC_("SCSTR_CONDITION", "Condition ")
// content description strings are also use d in ScLinkTargetsObj // content description strings are also used in ScLinkTargetsObj
#define SCSTR_CONTENT_ROOT NC_("SCSTR_CONTENT_ROOT", "Contents" ) #define SCSTR_CONTENT_ROOT NC_("SCSTR_CONTENT_ROOT", "Contents" )
#define SCSTR_CONTENT_TABLE NC_("SCSTR_CONTENT_TABLE", "Sheets" ) #define SCSTR_CONTENT_TABLE NC_("SCSTR_CONTENT_TABLE", "Sheets" )
#define SCSTR_CONTENT_RANGENAME NC_("SCSTR_CONTENT_RANGENAME", "Range names" ) #define SCSTR_CONTENT_RANGENAME NC_("SCSTR_CONTENT_RANGENAME", "Range names" )
+1 -1
View File
@@ -69,7 +69,7 @@ public:
CPPUNIT_ASSERT(pDoc); CPPUNIT_ASSERT(pDoc);
// Without the fix in place, this test would have failed // Without the fix in place, this test would have failed
// i.e. href attribute would have been turned into an absolute file // i.e. href attribute would have been turned into an absolute file URL
CPPUNIT_ASSERT(!getXPath(pDoc, "//a", "href").startsWith("file:")); CPPUNIT_ASSERT(!getXPath(pDoc, "//a", "href").startsWith("file:"));
} }
+11 -11
View File
@@ -15,22 +15,22 @@ class CellDropDownItems(UITestCase):
def test_dropdownitems(self): def test_dropdownitems(self):
#This is to test Dropdown items in grid window # This is to test Dropdown items in grid window
with self.ui_test.create_doc_in_start_center("calc") as document: with self.ui_test.create_doc_in_start_center("calc") as document:
xCalcDoc = self.xUITest.getTopFocusWindow() xCalcDoc = self.xUITest.getTopFocusWindow()
gridwin = xCalcDoc.getChild("grid_window") gridwin = xCalcDoc.getChild("grid_window")
#select cell C10 # select cell C10
gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "C10"})) gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "C10"}))
#Open Validation Dialog # Open Validation Dialog
with self.ui_test.execute_dialog_through_command(".uno:Validation") as xDialog: with self.ui_test.execute_dialog_through_command(".uno:Validation") as xDialog:
#Select List option # Select List option
xallow = xDialog.getChild("allow") xallow = xDialog.getChild("allow")
select_pos(xallow, "6") select_pos(xallow, "6")
#Add items to the List # Add items to the List
xminlist = xDialog.getChild("minlist") xminlist = xDialog.getChild("minlist")
xminlist.executeAction("TYPE", mkPropertyValues({"TEXT": "Item1"})) xminlist.executeAction("TYPE", mkPropertyValues({"TEXT": "Item1"}))
xminlist.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"})) xminlist.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"}))
@@ -42,13 +42,13 @@ class CellDropDownItems(UITestCase):
xminlist.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"})) xminlist.executeAction("TYPE", mkPropertyValues({"KEYCODE": "RETURN"}))
xminlist.executeAction("TYPE", mkPropertyValues({"TEXT": "Item5"})) xminlist.executeAction("TYPE", mkPropertyValues({"TEXT": "Item5"}))
#Close the dialog # Close the dialog
#Launch the Select Menu to view the list and select first item in the list # Launch the Select Menu to view the list and select the first item in the list
gridwin = xCalcDoc.getChild("grid_window") gridwin = xCalcDoc.getChild("grid_window")
gridwin.executeAction("LAUNCH", mkPropertyValues({"SELECTMENU": "", "COL": "2", "ROW": "9"})) gridwin.executeAction("LAUNCH", mkPropertyValues({"SELECTMENU": "", "COL": "2", "ROW": "9"}))
#Select the TreeList UI Object # Select the TreeList UI Object
xWin = self.xUITest.getTopFocusWindow() xWin = self.xUITest.getTopFocusWindow()
xlist = xWin.getChild("list") xlist = xWin.getChild("list")
@@ -56,11 +56,11 @@ class CellDropDownItems(UITestCase):
xListItem.executeAction("DOUBLECLICK" , mkPropertyValues({}) ) xListItem.executeAction("DOUBLECLICK" , mkPropertyValues({}) )
self.assertEqual(get_cell_by_position(document, 0, 2, 9).getString(), "Item1") self.assertEqual(get_cell_by_position(document, 0, 2, 9).getString(), "Item1")
#Launch the Select Menu to view the list and select Third item in the list # Launch the Select Menu to view the list and select the third item in the list
gridwin = xCalcDoc.getChild("grid_window") gridwin = xCalcDoc.getChild("grid_window")
gridwin.executeAction("LAUNCH", mkPropertyValues({"SELECTMENU": "", "COL": "2", "ROW": "9"})) gridwin.executeAction("LAUNCH", mkPropertyValues({"SELECTMENU": "", "COL": "2", "ROW": "9"}))
#Select the TreeList UI Object # Select the TreeList UI Object
xWin = self.xUITest.getTopFocusWindow() xWin = self.xUITest.getTopFocusWindow()
xlist = xWin.getChild("list") xlist = xWin.getChild("list")
@@ -68,7 +68,7 @@ class CellDropDownItems(UITestCase):
xListItem.executeAction("DOUBLECLICK" , mkPropertyValues({}) ) xListItem.executeAction("DOUBLECLICK" , mkPropertyValues({}) )
self.assertEqual(get_cell_by_position(document, 0, 2, 9).getString(), "Item3") self.assertEqual(get_cell_by_position(document, 0, 2, 9).getString(), "Item3")
#Launch the Select Menu to view the list and select Fifth item in the list # Launch the Select Menu to view the list and select the fifth item in the list
gridwin = xCalcDoc.getChild("grid_window") gridwin = xCalcDoc.getChild("grid_window")
gridwin.executeAction("LAUNCH", mkPropertyValues({"SELECTMENU": "", "COL": "2", "ROW": "9"})) gridwin.executeAction("LAUNCH", mkPropertyValues({"SELECTMENU": "", "COL": "2", "ROW": "9"}))
+1 -1
View File
@@ -227,7 +227,7 @@ void ScJumboSheetsTest::testTdf134553()
// Without the fix in place, this test would have failed here // Without the fix in place, this test would have failed here
CPPUNIT_ASSERT(pOleObj); CPPUNIT_ASSERT(pOleObj);
// Sorry, the charts so severely suffer from DPI dependency, that I can't find motivation // Sorry, the charts suffer so severely from DPI dependency, that I can't find motivation
// to add huge tolerances (around 350!) here to make it pass on non-default DPI, with no // to add huge tolerances (around 350!) here to make it pass on non-default DPI, with no
// guarantee that the test would have any value after that. So just skip it. // guarantee that the test would have any value after that. So just skip it.
// FIXME: the DPI check should be removed when either (1) the test is fixed to work with // FIXME: the DPI check should be removed when either (1) the test is fixed to work with
+1 -1
View File
@@ -1846,7 +1846,7 @@ CPPUNIT_TEST_FIXTURE(ScOpenCLTest1, testMathFormulaArcSin)
ScDocument* pDocRes = getScDoc2(); ScDocument* pDocRes = getScDoc2();
pDoc->CalcAll(); pDoc->CalcAll();
// Verify ACotH Function // Verify ASin Function
for (SCROW i = 1; i <= 1000; ++i) for (SCROW i = 1; i <= 1000; ++i)
{ {
double fLibre = pDoc->GetValue(1, i, 0); double fLibre = pDoc->GetValue(1, i, 0);
+1 -1
View File
@@ -224,7 +224,7 @@ CPPUNIT_TEST_FIXTURE(ScExportTest, testTdf111876)
CPPUNIT_ASSERT(pDoc); CPPUNIT_ASSERT(pDoc);
OUString sTarget = getXPath(pDoc, "/rels:Relationships/rels:Relationship", "Target"); OUString sTarget = getXPath(pDoc, "/rels:Relationships/rels:Relationship", "Target");
// Document is saved to the temporary directory, relative path should be different than original one // Document is saved to the temporary directory, relative path should be different from the original one
CPPUNIT_ASSERT(sTarget != "../xls/bug-fixes.xls"); CPPUNIT_ASSERT(sTarget != "../xls/bug-fixes.xls");
} }
+1 -1
View File
@@ -238,7 +238,7 @@ CPPUNIT_TEST_FIXTURE(ScExportTest3, testBordersExchangeXLSX)
pDoc->GetBorderLines(nCol + 2, (nRow * 2) + 8, 0, nullptr, &pLineTop, nullptr, pDoc->GetBorderLines(nCol + 2, (nRow * 2) + 8, 0, nullptr, &pLineTop, nullptr,
&pLineBottom); &pLineBottom);
if ((nCol < 3) && (nRow == 6)) if ((nCol < 3) && (nRow == 6))
{ // in this range no lines since minimum size to create a double is 0.5 { // in this range there are no lines since minimum size to create a double is 0.5
CPPUNIT_ASSERT(!pLineTop); CPPUNIT_ASSERT(!pLineTop);
CPPUNIT_ASSERT(!pLineBottom); CPPUNIT_ASSERT(!pLineBottom);
continue; continue;
+1 -1
View File
@@ -738,7 +738,7 @@ CPPUNIT_TEST_FIXTURE(ScExportTest4, testTdf137000_handle_upright)
{ {
// Upright is an xml attribute of xdr:txBody/a:bodyPr. It is set when in a textbox menu we // Upright is an xml attribute of xdr:txBody/a:bodyPr. It is set when in a textbox menu we
// choose, 'do not rotate this element'. Implementations are in tdf#106197 with followup // choose, 'do not rotate this element'. Implementations are in tdf#106197 with followup
// tdf#137000. tdf#149538, tdf#149551 improve the implementation to export 'upright' instead // tdf#137000; tdf#149538, tdf#149551 improve the implementation to export 'upright' instead
// of workaround 'rot'. // of workaround 'rot'.
createScDoc("xlsx/tdf137000_export_upright.xlsx"); createScDoc("xlsx/tdf137000_export_upright.xlsx");
+2 -2
View File
@@ -1476,8 +1476,8 @@ CPPUNIT_TEST_FIXTURE(ScExportTest5, testTdf170963_row_breaks)
xmlDocUniquePtr pSheet = parseExport(u"xl/worksheets/sheet1.xml"_ustr); xmlDocUniquePtr pSheet = parseExport(u"xl/worksheets/sheet1.xml"_ustr);
CPPUNIT_ASSERT(pSheet); CPPUNIT_ASSERT(pSheet);
const int nMaxRowBreaks = 1023; const int nMaxRowBreaks = 1023;
// Original had 1026 row breaks, but the max Excel handles is 1023 // Original had 1026 row breaks, but the max Excel handles is 1023.
// Without the fix all 1026 got exported // Without the fix all 1026 got exported.
assertXPath(pSheet, "/x:worksheet/x:rowBreaks", "count", OUString::number(nMaxRowBreaks)); assertXPath(pSheet, "/x:worksheet/x:rowBreaks", "count", OUString::number(nMaxRowBreaks));
CPPUNIT_ASSERT_EQUAL(nMaxRowBreaks, countXPathNodes(pSheet, "/x:worksheet/x:rowBreaks/x:brk")); CPPUNIT_ASSERT_EQUAL(nMaxRowBreaks, countXPathNodes(pSheet, "/x:worksheet/x:rowBreaks/x:brk"));
} }
+1 -1
View File
@@ -90,7 +90,7 @@ void testContentImpl(ScDocument& rDoc, bool bCheckMergedCells)
OUString aString = rDoc.GetString(1, 0, 0); OUString aString = rDoc.GetString(1, 0, 0);
//check string import //check string import
CPPUNIT_ASSERT_EQUAL_MESSAGE("string imported not correctly", u"String1"_ustr, aString); CPPUNIT_ASSERT_EQUAL_MESSAGE("string not imported correctly", u"String1"_ustr, aString);
aString = rDoc.GetString(1, 1, 0); aString = rDoc.GetString(1, 1, 0);
CPPUNIT_ASSERT_EQUAL_MESSAGE("string not imported correctly", u"String2"_ustr, aString); CPPUNIT_ASSERT_EQUAL_MESSAGE("string not imported correctly", u"String2"_ustr, aString);