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
d09b4aff
Kaydet (Commit)
d09b4aff
authored
Nis 30, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Unit test for the earlier reference toggling bug.
Change-Id: If9c05add57c87f56e8514cee75b89e09c74277f5
üst
9bff49e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
ucalc.cxx
sc/qa/unit/ucalc.cxx
+27
-0
No files found.
sc/qa/unit/ucalc.cxx
Dosyayı görüntüle @
d09b4aff
...
...
@@ -5116,6 +5116,33 @@ void Test::testToggleRefFlag()
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"=R1C1"
),
aFormula
);
}
{
// Calc A1:
OUString
aFormula
(
"=A1+4"
);
ScAddress
aPos
(
1
,
1
,
0
);
ScRefFinder
aFinder
(
aFormula
,
aPos
,
m_pDoc
,
formula
::
FormulaGrammar
::
CONV_OOO
);
// Original
CPPUNIT_ASSERT_EQUAL
(
aFormula
,
aFinder
.
GetText
());
// Set the cursor over the 'A1' part and toggle.
aFinder
.
ToggleRel
(
2
,
2
);
aFormula
=
aFinder
.
GetText
();
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"=$A$1+4"
),
aFormula
);
aFinder
.
ToggleRel
(
2
,
2
);
aFormula
=
aFinder
.
GetText
();
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"=A$1+4"
),
aFormula
);
aFinder
.
ToggleRel
(
2
,
2
);
aFormula
=
aFinder
.
GetText
();
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"=$A1+4"
),
aFormula
);
aFinder
.
ToggleRel
(
2
,
2
);
aFormula
=
aFinder
.
GetText
();
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"=A1+4"
),
aFormula
);
}
// TODO: Add more test cases esp. for 3D references, Excel A1 syntax, and
// partial selection within formula string.
...
...
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