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
0cb0952a
Kaydet (Commit)
0cb0952a
authored
Kas 19, 2011
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
little cleanup in ucalc
üst
ed398366
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
ucalc.cxx
sc/qa/unit/ucalc.cxx
+13
-3
No files found.
sc/qa/unit/ucalc.cxx
Dosyayı görüntüle @
0cb0952a
...
...
@@ -2398,6 +2398,7 @@ void Test::testPostIts()
rtl
::
OUString
aHello
(
RTL_CONSTASCII_USTRINGPARAM
(
"Hello world"
));
rtl
::
OUString
aJimBob
(
RTL_CONSTASCII_USTRINGPARAM
(
"Jim Bob"
));
rtl
::
OUString
aTabName
(
RTL_CONSTASCII_USTRINGPARAM
(
"PostIts"
));
rtl
::
OUString
aTabName2
(
RTL_CONSTASCII_USTRINGPARAM
(
"Table2"
));
m_pDoc
->
InsertTab
(
0
,
aTabName
);
ScAddress
rAddr
(
2
,
2
,
0
);
...
...
@@ -2422,6 +2423,11 @@ void Test::testPostIts()
rAddr
.
IncCol
();
CPPUNIT_ASSERT_MESSAGE
(
"note not there"
,
m_pDoc
->
GetNote
(
rAddr
)
==
pNote
);
m_pDoc
->
InsertTab
(
0
,
aTabName2
);
CPPUNIT_ASSERT_MESSAGE
(
"note hasn't moved"
,
m_pDoc
->
GetNote
(
rAddr
)
==
NULL
);
rAddr
.
IncTab
();
CPPUNIT_ASSERT_MESSAGE
(
"note not there"
,
m_pDoc
->
GetNote
(
rAddr
)
==
pNote
);
m_pDoc
->
DeleteTab
(
0
);
}
...
...
@@ -2716,9 +2722,7 @@ void Test::testMergedCells()
void
Test
::
testUpdateReference
()
{
//test that formulas are correctly updated during sheet delete
//TODO: add test cases for InsertTabs/InsertTab and DeleteTabs
//TODO: add tests for references to other sheets, relative references, updating of named ranges, ...
//TODO: maybe rename then to testUpdateReference
//TODO: add tests for relative references, updating of named ranges, ...
rtl
::
OUString
aSheet1
(
RTL_CONSTASCII_USTRINGPARAM
(
"Sheet1"
));
rtl
::
OUString
aSheet2
(
RTL_CONSTASCII_USTRINGPARAM
(
"Sheet2"
));
rtl
::
OUString
aSheet3
(
RTL_CONSTASCII_USTRINGPARAM
(
"Sheet3"
));
...
...
@@ -2766,6 +2770,7 @@ void Test::testUpdateReference()
m_pDoc
->
GetValue
(
2
,
1
,
2
,
aValue
);
CPPUNIT_ASSERT_MESSAGE
(
"after inserting second sheet formula does not return correct result"
,
aValue
==
5
);
//test new DeleteTabs/InsertTabs methods
m_pDoc
->
DeleteTabs
(
0
,
2
);
m_pDoc
->
GetValue
(
2
,
0
,
0
,
aValue
);
CPPUNIT_ASSERT_MESSAGE
(
"after deleting sheets formula does not return correct result"
,
aValue
==
3
);
...
...
@@ -2784,6 +2789,11 @@ void Test::testUpdateReference()
CPPUNIT_ASSERT_MESSAGE
(
"after inserting sheets formula does not return correct result"
,
aValue
==
3
);
m_pDoc
->
GetValue
(
2
,
1
,
2
,
aValue
);
CPPUNIT_ASSERT_MESSAGE
(
"after inserting sheets formula does not return correct result"
,
aValue
==
5
);
m_pDoc
->
DeleteTab
(
3
);
m_pDoc
->
DeleteTab
(
2
);
m_pDoc
->
DeleteTab
(
1
);
m_pDoc
->
DeleteTab
(
0
);
}
...
...
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