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
0b3f0f0b
Kaydet (Commit)
0b3f0f0b
authored
Eki 27, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#85215: Write test for this.
Change-Id: I789da5d81e6211ed8f5fae1e293833bde5ce375b
üst
1eb82c78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
ucalc_sort.cxx
sc/qa/unit/ucalc_sort.cxx
+33
-1
No files found.
sc/qa/unit/ucalc_sort.cxx
Dosyayı görüntüle @
0b3f0f0b
...
...
@@ -18,6 +18,7 @@
#include <scopetools.hxx>
#include <globalnames.hxx>
#include <dbdocfun.hxx>
#include <docfunc.hxx>
#include <scitems.hxx>
#include <editutil.hxx>
...
...
@@ -1430,7 +1431,38 @@ void Test::testSortRefUpdate6()
{
"9"
,
"1"
,
"7"
},
};
bool
bSuccess
=
checkOutput
<
3
>
(
m_pDoc
,
aDataRange
,
aOutputCheck
,
"Sorted without reference update"
);
bool
bSuccess
=
checkOutput
<
3
>
(
m_pDoc
,
aDataRange
,
aOutputCheck
,
"After redo"
);
CPPUNIT_ASSERT_MESSAGE
(
"Table output check failed"
,
bSuccess
);
}
// Change the value of C1 and make sure the formula broadcasting chain still works.
ScDocFunc
&
rFunc
=
getDocShell
().
GetDocFunc
();
rFunc
.
SetValueCell
(
ScAddress
(
2
,
0
,
0
),
11.0
,
false
);
{
// Expected output table content. 0 = empty cell
const
char
*
aOutputCheck
[][
3
]
=
{
{
"Order"
,
"Value"
,
"11"
},
{
"1"
,
"2"
,
"13"
},
{
"8"
,
"3"
,
"16"
},
{
"9"
,
"1"
,
"17"
},
};
bool
bSuccess
=
checkOutput
<
3
>
(
m_pDoc
,
aDataRange
,
aOutputCheck
,
"Change the header value"
);
CPPUNIT_ASSERT_MESSAGE
(
"Table output check failed"
,
bSuccess
);
}
// Undo and check.
pUndoMgr
->
Undo
();
{
// Expected output table content. 0 = empty cell
const
char
*
aOutputCheck
[][
3
]
=
{
{
"Order"
,
"Value"
,
"1"
},
{
"1"
,
"2"
,
"3"
},
{
"8"
,
"3"
,
"6"
},
{
"9"
,
"1"
,
"7"
},
};
bool
bSuccess
=
checkOutput
<
3
>
(
m_pDoc
,
aDataRange
,
aOutputCheck
,
"After undo of header value change"
);
CPPUNIT_ASSERT_MESSAGE
(
"Table output check failed"
,
bSuccess
);
}
...
...
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