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
0b578e51
Kaydet (Commit)
0b578e51
authored
Ara 12, 2013
tarafından
Muthu Subramanian
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#828390: Add unit test for new line import.
üst
de68d46d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
n828390_2.pptx
sd/qa/unit/data/pptx/n828390_2.pptx
+0
-0
import-tests.cxx
sd/qa/unit/import-tests.cxx
+21
-0
No files found.
sd/qa/unit/data/pptx/n828390_2.pptx
0 → 100644
Dosyayı görüntüle @
0b578e51
File added
sd/qa/unit/import-tests.cxx
Dosyayı görüntüle @
0b578e51
...
@@ -49,6 +49,7 @@ public:
...
@@ -49,6 +49,7 @@ public:
void
testFdo64512
();
void
testFdo64512
();
void
testFdo71075
();
void
testFdo71075
();
void
testN828390
();
void
testN828390
();
void
testN828390_2
();
void
testFdo68594
();
void
testFdo68594
();
CPPUNIT_TEST_SUITE
(
SdFiltersTest
);
CPPUNIT_TEST_SUITE
(
SdFiltersTest
);
...
@@ -59,6 +60,7 @@ public:
...
@@ -59,6 +60,7 @@ public:
CPPUNIT_TEST
(
testFdo64512
);
CPPUNIT_TEST
(
testFdo64512
);
CPPUNIT_TEST
(
testFdo71075
);
CPPUNIT_TEST
(
testFdo71075
);
CPPUNIT_TEST
(
testN828390
);
CPPUNIT_TEST
(
testN828390
);
CPPUNIT_TEST
(
testN828390_2
);
CPPUNIT_TEST
(
testFdo68594
);
CPPUNIT_TEST
(
testFdo68594
);
CPPUNIT_TEST_SUITE_END
();
CPPUNIT_TEST_SUITE_END
();
...
@@ -227,6 +229,25 @@ void SdFiltersTest::testN828390()
...
@@ -227,6 +229,25 @@ void SdFiltersTest::testN828390()
CPPUNIT_ASSERT_MESSAGE
(
"Subscript not exported properly"
,
bPassed
);
CPPUNIT_ASSERT_MESSAGE
(
"Subscript not exported properly"
,
bPassed
);
}
}
void
SdFiltersTest
::
testN828390_2
()
{
::
sd
::
DrawDocShellRef
xDocShRef
=
loadURL
(
getURLFromSrc
(
"/sd/qa/unit/data/pptx/n828390_2.pptx"
)
);
CPPUNIT_ASSERT_MESSAGE
(
"failed to load"
,
xDocShRef
.
Is
()
);
CPPUNIT_ASSERT_MESSAGE
(
"failed to load"
,
xDocShRef
.
Is
()
);
CPPUNIT_ASSERT_MESSAGE
(
"not in destruction"
,
!
xDocShRef
->
IsInDestruction
()
);
SdDrawDocument
*
pDoc
=
xDocShRef
->
GetDoc
();
CPPUNIT_ASSERT_MESSAGE
(
"no document"
,
pDoc
!=
NULL
);
const
SdrPage
*
pPage
=
pDoc
->
GetPage
(
1
);
CPPUNIT_ASSERT_MESSAGE
(
"no page"
,
pPage
!=
NULL
);
SdrObject
*
pObj
=
pPage
->
GetObj
(
0
);
SdrTextObj
*
pTxtObj
=
dynamic_cast
<
SdrTextObj
*>
(
pObj
);
const
EditTextObject
&
aEdit
=
pTxtObj
->
GetOutlinerParaObject
()
->
GetTextObject
();
CPPUNIT_ASSERT
(
aEdit
.
GetText
(
0
)
==
OUString
(
"Linux "
));
CPPUNIT_ASSERT
(
aEdit
.
GetText
(
1
)
==
OUString
(
"Standard Platform"
));
}
void
SdFiltersTest
::
testN778859
()
void
SdFiltersTest
::
testN778859
()
{
{
::
sd
::
DrawDocShellRef
xDocShRef
=
loadURL
(
getURLFromSrc
(
"/sd/qa/unit/data/pptx/n778859.pptx"
));
::
sd
::
DrawDocShellRef
xDocShRef
=
loadURL
(
getURLFromSrc
(
"/sd/qa/unit/data/pptx/n778859.pptx"
));
...
...
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