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
690228ad
Kaydet (Commit)
690228ad
authored
Eyl 25, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add a unit test for fdo#66646
Change-Id: I15bef4e0422261ec473263ac8fc239604146f864
üst
1e2bbf4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
ucalc.cxx
sc/qa/unit/ucalc.cxx
+21
-0
ucalc.hxx
sc/qa/unit/ucalc.hxx
+2
-0
No files found.
sc/qa/unit/ucalc.cxx
Dosyayı görüntüle @
690228ad
...
...
@@ -4202,6 +4202,27 @@ void Test::testCondFormatInsertRow()
m_pDoc
->
DeleteTab
(
0
);
}
void
Test
::
testMixData
()
{
m_pDoc
->
InsertTab
(
0
,
"Test"
);
m_pDoc
->
SetValue
(
1
,
0
,
0
,
2
);
m_pDoc
->
SetValue
(
0
,
1
,
0
,
3
);
ScDocument
aClipDoc
(
SCDOCMODE_CLIP
);
copyToClip
(
m_pDoc
,
ScRange
(
0
,
0
,
0
,
1
,
0
,
0
),
&
aClipDoc
);
ScDocument
aMixDoc
(
SCDOCMODE_CLIP
);
copyToClip
(
m_pDoc
,
ScRange
(
0
,
1
,
0
,
1
,
1
,
0
),
&
aMixDoc
);
pasteFromClip
(
m_pDoc
,
ScRange
(
0
,
1
,
0
,
1
,
1
,
0
),
&
aClipDoc
);
m_pDoc
->
MixDocument
(
ScRange
(
0
,
1
,
0
,
1
,
1
,
0
),
1
,
false
,
&
aMixDoc
);
CPPUNIT_ASSERT_EQUAL
(
2.0
,
m_pDoc
->
GetValue
(
1
,
1
,
0
));
CPPUNIT_ASSERT_EQUAL
(
3.0
,
m_pDoc
->
GetValue
(
0
,
1
,
0
));
m_pDoc
->
DeleteTab
(
0
);
}
void
Test
::
printRange
(
ScDocument
*
pDoc
,
const
ScRange
&
rRange
,
const
char
*
pCaption
)
{
SCROW
nRow1
=
rRange
.
aStart
.
Row
(),
nRow2
=
rRange
.
aEnd
.
Row
();
...
...
sc/qa/unit/ucalc.hxx
Dosyayı görüntüle @
690228ad
...
...
@@ -224,6 +224,8 @@ public:
void
testSharedFormulasCopyPaste
();
void
testFormulaPosition
();
void
testMixData
();
/**
* Make sure the sheet streams are invalidated properly.
*/
...
...
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