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
2832da0f
Kaydet (Commit)
2832da0f
authored
Mar 15, 2013
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#61952: add unit test
Change-Id: Idef40ea4ad615fa5d09d2a5ed6eb3fe861f1b5ea
üst
4dc78aee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
odfimport.cxx
sw/qa/extras/odfimport/odfimport.cxx
+11
-0
No files found.
sw/qa/extras/odfimport/odfimport.cxx
Dosyayı görüntüle @
2832da0f
...
...
@@ -42,6 +42,7 @@ public:
void
testOdtBorders
();
void
testPageStyleLayoutDefault
();
void
testPageStyleLayoutRight
();
void
testFdo61952
();
void
testFdo60842
();
void
testFdo56272
();
...
...
@@ -63,6 +64,7 @@ void Test::run()
{
"borders_ooo33.odt"
,
&
Test
::
testOdtBorders
},
{
"hello.odt"
,
&
Test
::
testPageStyleLayoutDefault
},
{
"hello.odt"
,
&
Test
::
testPageStyleLayoutRight
},
{
"hello.odt"
,
&
Test
::
testFdo61952
},
{
"fdo60842.odt"
,
&
Test
::
testFdo60842
},
{
"fdo56272.odt"
,
&
Test
::
testFdo56272
},
};
...
...
@@ -295,6 +297,15 @@ void Test::testPageStyleLayoutRight()
xPropertySet
->
setPropertyValue
(
"PageStyleLayout"
,
uno
::
makeAny
(
style
::
PageStyleLayout_RIGHT
));
}
void
Test
::
testFdo61952
()
{
uno
::
Reference
<
beans
::
XPropertySet
>
xPara
(
getParagraph
(
0
),
uno
::
UNO_QUERY
);
xPara
->
setPropertyValue
(
"PageDescName"
,
uno
::
makeAny
(
OUString
(
"Left Page"
)));
xPara
->
setPropertyValue
(
"PageDescName"
,
uno
::
makeAny
(
OUString
(
"Right Page"
)));
xPara
->
setPropertyValue
(
"PageDescName"
,
uno
::
makeAny
(
OUString
(
"Left Page"
)));
xPara
->
setPropertyValue
(
"PageDescName"
,
uno
::
makeAny
(
OUString
(
"Right Page"
)));
}
void
Test
::
testFdo60842
()
{
uno
::
Reference
<
text
::
XTextContent
>
const
xTable
(
getParagraphOrTable
(
0
));
...
...
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