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
c3452373
Kaydet (Commit)
c3452373
authored
Tem 11, 2012
tarafından
Daniel Bankston
Kaydeden (comit)
Kohei Yoshida
Tem 12, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add test for volatile functions for ODS import
Change-Id: If2f85e32ddeb9f25b4a355ce5451dc04925bbbc9
üst
6bf50c8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
volatile.ods
sc/qa/unit/data/ods/volatile.ods
+0
-0
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+24
-0
No files found.
sc/qa/unit/data/ods/volatile.ods
0 → 100644
Dosyayı görüntüle @
c3452373
File added
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
c3452373
...
...
@@ -109,6 +109,7 @@ public:
void
testHardRecalcODS
();
void
testFunctionsODS
();
void
testCachedFormulaResultsODS
();
void
testVolatileFunctionsODS
();
void
testCachedMatrixFormulaResultsODS
();
void
testDatabaseRangesODS
();
void
testDatabaseRangesXLS
();
...
...
@@ -145,6 +146,7 @@ public:
CPPUNIT_TEST
(
testHardRecalcODS
);
CPPUNIT_TEST
(
testFunctionsODS
);
CPPUNIT_TEST
(
testCachedFormulaResultsODS
);
CPPUNIT_TEST
(
testVolatileFunctionsODS
);
CPPUNIT_TEST
(
testCachedMatrixFormulaResultsODS
);
CPPUNIT_TEST
(
testDatabaseRangesODS
);
CPPUNIT_TEST
(
testDatabaseRangesXLS
);
...
...
@@ -388,6 +390,28 @@ void ScFiltersTest::testCachedFormulaResultsODS()
xDocSh
->
DoClose
();
}
void
ScFiltersTest
::
testVolatileFunctionsODS
()
{
const
rtl
::
OUString
aFileNameBase
(
RTL_CONSTASCII_USTRINGPARAM
(
"volatile."
));
ScDocShellRef
xDocSh
=
loadDoc
(
aFileNameBase
,
ODS
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to load volatile.ods"
,
xDocSh
.
Is
());
ScDocument
*
pDoc
=
xDocSh
->
GetDocument
();
//we want to me sure that volatile functions are always recalculated
//regardless of cached results. if you update the ods file, you must
//update the values here.
//if NOW() is recacluated, then it should never equal sTodayCache
OUString
sTodayCache
(
"07/11/12 12:28 AM"
);
OUString
sTodayRecalc
(
pDoc
->
GetString
(
0
,
1
,
0
));
CPPUNIT_ASSERT
(
sTodayCache
!=
sTodayRecalc
);
OUString
sTodayRecalcRef
(
pDoc
->
GetString
(
2
,
1
,
0
));
CPPUNIT_ASSERT
(
sTodayCache
!=
sTodayRecalcRef
);
xDocSh
->
DoClose
();
}
void
ScFiltersTest
::
testCachedMatrixFormulaResultsODS
()
{
const
rtl
::
OUString
aFileNameBase
(
RTL_CONSTASCII_USTRINGPARAM
(
"matrix."
));
...
...
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