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
12ab10e5
Kaydet (Commit)
12ab10e5
authored
Kas 28, 2014
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#84043: add a test for the bug
Change-Id: Ic9ad86bfc2d4d6b02afe99a34ded27fe94f54fab
üst
c4224377
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
fdo84043.odp
sd/qa/unit/data/fdo84043.odp
+0
-0
export-tests.cxx
sd/qa/unit/export-tests.cxx
+16
-0
No files found.
sd/qa/unit/data/fdo84043.odp
0 → 100644
Dosyayı görüntüle @
12ab10e5
File added
sd/qa/unit/export-tests.cxx
Dosyayı görüntüle @
12ab10e5
...
...
@@ -71,6 +71,7 @@ public:
void
testN828390_5
();
void
testMediaEmbedding
();
void
testFdo71961
();
void
testFdo84043
();
void
testN828390
();
void
testBnc880763
();
void
testBnc862510_5
();
...
...
@@ -87,6 +88,7 @@ public:
CPPUNIT_TEST
(
testN828390_5
);
CPPUNIT_TEST
(
testMediaEmbedding
);
CPPUNIT_TEST
(
testFdo71961
);
CPPUNIT_TEST
(
testFdo84043
);
CPPUNIT_TEST
(
testN828390
);
CPPUNIT_TEST
(
testBnc880763
);
CPPUNIT_TEST
(
testBnc862510_5
);
...
...
@@ -325,6 +327,20 @@ void SdExportTest::testMediaEmbedding()
xDocShRef
->
DoClose
();
}
void
SdExportTest
::
testFdo84043
()
{
::
sd
::
DrawDocShellRef
xDocShRef
=
loadURL
(
getURLFromSrc
(
"/sd/qa/unit/data/fdo84043.odp"
),
ODP
);
xDocShRef
=
saveAndReload
(
xDocShRef
,
ODP
);
// the bug was duplicate attributes, causing crash in a build with asserts
SdDrawDocument
const
*
pDoc
=
xDocShRef
->
GetDoc
();
CPPUNIT_ASSERT_MESSAGE
(
"no document"
,
pDoc
!=
nullptr
);
SdrPage
const
*
pPage
=
pDoc
->
GetPage
(
1
);
CPPUNIT_ASSERT_MESSAGE
(
"no page"
,
pPage
!=
nullptr
);
SdrObject
const
*
pShape
=
pPage
->
GetObj
(
1
);
CPPUNIT_ASSERT_MESSAGE
(
"no shape"
,
pShape
!=
nullptr
);
}
void
SdExportTest
::
testFdo71961
()
{
::
sd
::
DrawDocShellRef
xDocShRef
=
loadURL
(
getURLFromSrc
(
"/sd/qa/unit/data/fdo71961.odp"
),
ODP
);
...
...
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