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
664e64a1
Kaydet (Commit)
664e64a1
authored
Ara 08, 2014
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Ara 08, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add test for fdo#85304
Change-Id: I35692a4a4ccfd1aa5938078bdf32a3eaff082453
üst
1de372de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
ucalc.hxx
sc/qa/unit/ucalc.hxx
+2
-0
ucalc_formula.cxx
sc/qa/unit/ucalc_formula.cxx
+20
-0
No files found.
sc/qa/unit/ucalc.hxx
Dosyayı görüntüle @
664e64a1
...
@@ -149,6 +149,7 @@ public:
...
@@ -149,6 +149,7 @@ public:
void
testFormulaRefUpdateNameExpandRef
();
void
testFormulaRefUpdateNameExpandRef
();
void
testFormulaRefUpdateNameDeleteRow
();
void
testFormulaRefUpdateNameDeleteRow
();
void
testFormulaRefUpdateNameCopySheet
();
void
testFormulaRefUpdateNameCopySheet
();
void
testFormulaRefUpdateNameDelete
();
void
testFormulaRefUpdateValidity
();
void
testFormulaRefUpdateValidity
();
void
testMultipleOperations
();
void
testMultipleOperations
();
void
testFuncCOLUMN
();
void
testFuncCOLUMN
();
...
@@ -454,6 +455,7 @@ public:
...
@@ -454,6 +455,7 @@ public:
CPPUNIT_TEST
(
testFormulaRefUpdateNameExpandRef
);
CPPUNIT_TEST
(
testFormulaRefUpdateNameExpandRef
);
CPPUNIT_TEST
(
testFormulaRefUpdateNameDeleteRow
);
CPPUNIT_TEST
(
testFormulaRefUpdateNameDeleteRow
);
CPPUNIT_TEST
(
testFormulaRefUpdateNameCopySheet
);
CPPUNIT_TEST
(
testFormulaRefUpdateNameCopySheet
);
CPPUNIT_TEST
(
testFormulaRefUpdateNameDelete
);
CPPUNIT_TEST
(
testFormulaRefUpdateValidity
);
CPPUNIT_TEST
(
testFormulaRefUpdateValidity
);
CPPUNIT_TEST
(
testMultipleOperations
);
CPPUNIT_TEST
(
testMultipleOperations
);
CPPUNIT_TEST
(
testFuncCOLUMN
);
CPPUNIT_TEST
(
testFuncCOLUMN
);
...
...
sc/qa/unit/ucalc_formula.cxx
Dosyayı görüntüle @
664e64a1
...
@@ -2636,6 +2636,26 @@ void Test::testFormulaRefUpdateNameCopySheet()
...
@@ -2636,6 +2636,26 @@ void Test::testFormulaRefUpdateNameCopySheet()
m_pDoc
->
DeleteTab
(
0
);
m_pDoc
->
DeleteTab
(
0
);
}
}
void
Test
::
testFormulaRefUpdateNameDelete
()
{
m_pDoc
->
InsertTab
(
0
,
"Test"
);
// Insert a new name 'MyRange' to reference B1
bool
bInserted
=
m_pDoc
->
InsertNewRangeName
(
"MyRange"
,
ScAddress
(
0
,
0
,
0
),
"$Test.$B$1"
);
CPPUNIT_ASSERT
(
bInserted
);
const
ScRangeData
*
pName
=
m_pDoc
->
GetRangeName
()
->
findByUpperName
(
"MYRANGE"
);
CPPUNIT_ASSERT
(
pName
);
m_pDoc
->
DeleteCol
(
1
,
0
,
3
,
0
,
0
,
1
);
const
ScTokenArray
*
pCode
=
pName
->
GetCode
();
sc
::
TokenStringContext
aCxt
(
m_pDoc
,
formula
::
FormulaGrammar
::
GRAM_ENGLISH
);
OUString
aExpr
=
pCode
->
CreateString
(
aCxt
,
ScAddress
(
0
,
0
,
0
));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"$Test.$B$1"
),
aExpr
);
m_pDoc
->
DeleteTab
(
0
);
}
void
Test
::
testFormulaRefUpdateValidity
()
void
Test
::
testFormulaRefUpdateValidity
()
{
{
struct
{
struct
{
...
...
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