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
b99c869c
Kaydet (Commit)
b99c869c
authored
Tem 30, 2015
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bnc#762542: Unit test for
1abc0695
Change-Id: I52ede543298d788cd047b8080819eef7d22a73e6
üst
0af2e9fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
bnc762542.xlsx
sc/qa/unit/data/xlsx/bnc762542.xlsx
+0
-0
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+31
-0
No files found.
sc/qa/unit/data/xlsx/bnc762542.xlsx
0 → 100644
Dosyayı görüntüle @
b99c869c
File added
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
b99c869c
...
@@ -206,6 +206,8 @@ public:
...
@@ -206,6 +206,8 @@ public:
void
testRefStringXLSX
();
void
testRefStringXLSX
();
void
testRefStringConfigXLSX
();
void
testRefStringConfigXLSX
();
void
testBnc762542
();
CPPUNIT_TEST_SUITE
(
ScFiltersTest
);
CPPUNIT_TEST_SUITE
(
ScFiltersTest
);
CPPUNIT_TEST
(
testBooleanFormatXLSX
);
CPPUNIT_TEST
(
testBooleanFormatXLSX
);
CPPUNIT_TEST
(
testBasicCellContentODS
);
CPPUNIT_TEST
(
testBasicCellContentODS
);
...
@@ -301,6 +303,9 @@ public:
...
@@ -301,6 +303,9 @@ public:
CPPUNIT_TEST
(
testEditEngStrikeThroughXLSX
);
CPPUNIT_TEST
(
testEditEngStrikeThroughXLSX
);
CPPUNIT_TEST
(
testRefStringXLSX
);
CPPUNIT_TEST
(
testRefStringXLSX
);
CPPUNIT_TEST
(
testRefStringConfigXLSX
);
CPPUNIT_TEST
(
testRefStringConfigXLSX
);
CPPUNIT_TEST
(
testBnc762542
);
CPPUNIT_TEST_SUITE_END
();
CPPUNIT_TEST_SUITE_END
();
private
:
private
:
...
@@ -3126,6 +3131,32 @@ void ScFiltersTest::testRefStringConfigXLSX()
...
@@ -3126,6 +3131,32 @@ void ScFiltersTest::testRefStringConfigXLSX()
xDocSh
->
DoClose
();
xDocSh
->
DoClose
();
}
}
void
ScFiltersTest
::
testBnc762542
()
{
ScDocShellRef
xDocSh
=
loadDoc
(
"bnc762542."
,
XLSX
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to open doc"
,
xDocSh
.
Is
());
ScDocument
&
rDoc
=
xDocSh
->
GetDocument
();
ScDrawLayer
*
pDrawLayer
=
rDoc
.
GetDrawLayer
();
SdrPage
*
pPage
=
pDrawLayer
->
GetPage
(
0
);
CPPUNIT_ASSERT_MESSAGE
(
"draw page for sheet 1 should exist."
,
pPage
);
const
size_t
nCount
=
pPage
->
GetObjCount
();
CPPUNIT_ASSERT_MESSAGE
(
"There should be 10 shapes."
,
nCount
==
10
);
// previously, some of the shapes were (incorrectly) rotated by 90 degrees
for
(
size_t
i
:
{
1
,
2
,
4
,
5
,
7
,
9
})
{
SdrObject
*
pObj
=
pPage
->
GetObj
(
i
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to get drawing object."
,
pObj
);
Rectangle
aRect
(
pObj
->
GetCurrentBoundRect
());
CPPUNIT_ASSERT_MESSAGE
(
"Drawing object shouldn't be rotated."
,
aRect
.
GetWidth
()
>
aRect
.
GetHeight
());
}
xDocSh
->
DoClose
();
}
ScFiltersTest
::
ScFiltersTest
()
ScFiltersTest
::
ScFiltersTest
()
:
ScBootstrapFixture
(
"sc/qa/unit/data"
)
:
ScBootstrapFixture
(
"sc/qa/unit/data"
)
{
{
...
...
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