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
96e4cc87
Kaydet (Commit)
96e4cc87
authored
Eyl 03, 2013
tarafından
Zolnai Tamás
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix expected and actual order in odf export test
Change-Id: Ib8168112e297571cc99b39fbf365d888e2247da5
üst
d21dd288
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
odfexport.cxx
sw/qa/extras/odfexport/odfexport.cxx
+13
-13
No files found.
sw/qa/extras/odfexport/odfexport.cxx
Dosyayı görüntüle @
96e4cc87
...
@@ -198,10 +198,10 @@ void Test::testCharacterBorder()
...
@@ -198,10 +198,10 @@ void Test::testCharacterBorder()
// Shadow
// Shadow
const
table
::
ShadowFormat
aShadow
=
getProperty
<
table
::
ShadowFormat
>
(
xSet
,
"ParaShadowFormat"
);
const
table
::
ShadowFormat
aShadow
=
getProperty
<
table
::
ShadowFormat
>
(
xSet
,
"ParaShadowFormat"
);
CPPUNIT_ASSERT_EQUAL
(
aShadow
.
Color
,
sal_Int32
(
0
)
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
aShadow
.
Color
);
CPPUNIT_ASSERT_EQUAL
(
(
bool
)
aShadow
.
IsTransparent
,
false
);
CPPUNIT_ASSERT_EQUAL
(
false
,
(
bool
)
aShadow
.
IsTransparent
);
CPPUNIT_ASSERT_EQUAL
(
aShadow
.
Location
,
table
::
ShadowLocation
(
0
)
);
CPPUNIT_ASSERT_EQUAL
(
table
::
ShadowLocation
(
0
),
aShadow
.
Location
);
CPPUNIT_ASSERT_EQUAL
(
aShadow
.
ShadowWidth
,
sal_Int16
(
0
)
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int16
(
0
),
aShadow
.
ShadowWidth
);
}
}
// Character border for first paragraph
// Character border for first paragraph
...
@@ -228,16 +228,16 @@ void Test::testCharacterBorder()
...
@@ -228,16 +228,16 @@ void Test::testCharacterBorder()
// Shadow
// Shadow
const
table
::
ShadowFormat
aShadow
=
getProperty
<
table
::
ShadowFormat
>
(
xSet
,
"CharShadowFormat"
);
const
table
::
ShadowFormat
aShadow
=
getProperty
<
table
::
ShadowFormat
>
(
xSet
,
"CharShadowFormat"
);
CPPUNIT_ASSERT_EQUAL
(
aShadow
.
Color
,
sal_Int32
(
16724787
)
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
16724787
),
aShadow
.
Color
);
CPPUNIT_ASSERT_EQUAL
(
(
bool
)
aShadow
.
IsTransparent
,
false
);
CPPUNIT_ASSERT_EQUAL
(
false
,
(
bool
)
aShadow
.
IsTransparent
);
CPPUNIT_ASSERT_EQUAL
(
aShadow
.
Location
,
table
::
ShadowLocation
(
2
)
);
CPPUNIT_ASSERT_EQUAL
(
table
::
ShadowLocation
(
2
),
aShadow
.
Location
);
CPPUNIT_ASSERT_EQUAL
(
aShadow
.
ShadowWidth
,
sal_Int16
(
280
)
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int16
(
280
),
aShadow
.
ShadowWidth
);
// Check autostyle
// Check autostyle
{
{
uno
::
Reference
<
style
::
XAutoStyleFamily
>
xAutoStyleFamily
(
getAutoStyles
(
"ParagraphStyles"
));
uno
::
Reference
<
style
::
XAutoStyleFamily
>
xAutoStyleFamily
(
getAutoStyles
(
"ParagraphStyles"
));
uno
::
Reference
<
container
::
XEnumeration
>
xAutoStylesEnum
(
xAutoStyleFamily
->
createEnumeration
()
);
uno
::
Reference
<
container
::
XEnumeration
>
xAutoStylesEnum
(
xAutoStyleFamily
->
createEnumeration
()
);
CPPUNIT_ASSERT_EQUAL
(
(
bool
)
xAutoStylesEnum
->
hasMoreElements
(),
true
);
CPPUNIT_ASSERT_EQUAL
(
true
,
(
bool
)
xAutoStylesEnum
->
hasMoreElements
()
);
// First paragraph autostyle
// First paragraph autostyle
uno
::
Reference
<
beans
::
XPropertySet
>
xPSet
(
xAutoStylesEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPSet
(
xAutoStylesEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
...
@@ -295,10 +295,10 @@ void Test::testCharacterBorder()
...
@@ -295,10 +295,10 @@ void Test::testCharacterBorder()
// Shadow
// Shadow
const
table
::
ShadowFormat
aShadow
=
getProperty
<
table
::
ShadowFormat
>
(
xSet
,
"CharShadowFormat"
);
const
table
::
ShadowFormat
aShadow
=
getProperty
<
table
::
ShadowFormat
>
(
xSet
,
"CharShadowFormat"
);
CPPUNIT_ASSERT_EQUAL
(
aShadow
.
Color
,
sal_Int32
(
0
)
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
aShadow
.
Color
);
CPPUNIT_ASSERT_EQUAL
(
(
bool
)
aShadow
.
IsTransparent
,
false
);
CPPUNIT_ASSERT_EQUAL
(
false
,
(
bool
)
aShadow
.
IsTransparent
);
CPPUNIT_ASSERT_EQUAL
(
aShadow
.
Location
,
table
::
ShadowLocation
(
3
)
);
CPPUNIT_ASSERT_EQUAL
(
table
::
ShadowLocation
(
3
),
aShadow
.
Location
);
CPPUNIT_ASSERT_EQUAL
(
aShadow
.
ShadowWidth
,
sal_Int16
(
79
)
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int16
(
79
),
aShadow
.
ShadowWidth
);
// Check character style
// Check character style
{
{
...
...
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