Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
e3e9e0ae
Kaydet (Commit)
e3e9e0ae
authored
Nis 15, 2016
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add test for tdf#88849
Change-Id: Id72d94799e20f0b290d5d5b05fb2b351d0750178
üst
3d9f86e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
scperfobj.cxx
sc/qa/perf/scperfobj.cxx
+30
-0
No files found.
sc/qa/perf/scperfobj.cxx
Dosyayı görüntüle @
e3e9e0ae
...
...
@@ -74,6 +74,7 @@ public:
CPPUNIT_TEST
(
testLoadingFileWithSingleBigSheet
);
CPPUNIT_TEST
(
testFixedSum
);
CPPUNIT_TEST
(
testVariableSum
);
CPPUNIT_TEST
(
testMatConcat
);
CPPUNIT_TEST_SUITE_END
();
private
:
...
...
@@ -98,6 +99,7 @@ private:
void
testLoadingFileWithSingleBigSheet
();
void
testFixedSum
();
void
testVariableSum
();
void
testMatConcat
();
};
sal_Int32
ScPerfObj
::
nTest
=
0
;
...
...
@@ -628,6 +630,34 @@ void ScPerfObj::testVariableSum()
callgrindDump
(
"sc:sum_with_variable_array_formula"
);
}
void
ScPerfObj
::
testMatConcat
()
{
uno
::
Reference
<
sheet
::
XSpreadsheetDocument
>
xDoc
(
init
(
"empty.ods"
),
UNO_QUERY_THROW
);
CPPUNIT_ASSERT
(
xDoc
.
is
());
uno
::
Reference
<
sheet
::
XCalculatable
>
xCalculatable
(
xDoc
,
UNO_QUERY_THROW
);
// get getSheets
uno
::
Reference
<
sheet
::
XSpreadsheets
>
xSheets
(
xDoc
->
getSheets
(),
UNO_QUERY_THROW
);
uno
::
Any
rSheet
=
xSheets
->
getByName
(
"Sheet1"
);
// query for the XSpreadsheet interface
uno
::
Reference
<
sheet
::
XSpreadsheet
>
xSheet
(
rSheet
,
UNO_QUERY
);
// query for the XCellRange interface
uno
::
Reference
<
table
::
XCellRange
>
rCellRange
(
rSheet
,
UNO_QUERY
);
// query the cell range
uno
::
Reference
<
table
::
XCellRange
>
xCellRange
=
rCellRange
->
getCellRangeByName
(
"C1"
);
uno
::
Reference
<
sheet
::
XArrayFormulaRange
>
xArrayFormulaRange
(
xCellRange
,
UNO_QUERY_THROW
);
callgrindStart
();
xArrayFormulaRange
->
setArrayFormula
(
"=A:A&B:B"
);
xCalculatable
->
calculate
();
callgrindDump
(
"sc:mat_concat"
);
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
ScPerfObj
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment