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
e63950dc
Kaydet (Commit)
e63950dc
authored
Nis 05, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
w:numPicBullet export testcase
Change-Id: Ia8a32b6d9fcb53e3974940c173edb2fe4c9e1ab3
üst
13183219
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
23 deletions
+22
-23
i120928.docx
sw/qa/extras/ooxmlexport/data/i120928.docx
+0
-0
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+22
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+0
-23
No files found.
sw/qa/extras/ooxml
im
port/data/i120928.docx
→
sw/qa/extras/ooxml
ex
port/data/i120928.docx
Dosyayı görüntüle @
e63950dc
File moved
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
e63950dc
...
@@ -86,6 +86,7 @@ public:
...
@@ -86,6 +86,7 @@ public:
void
testTableStylerPrSz
();
void
testTableStylerPrSz
();
void
testMathLiteral
();
void
testMathLiteral
();
void
testFdo48557
();
void
testFdo48557
();
void
testI120928
();
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
#if !defined(MACOSX) && !defined(WNT)
...
@@ -132,6 +133,7 @@ void Test::run()
...
@@ -132,6 +133,7 @@ void Test::run()
{
"table-style-rPr-sz.docx"
,
&
Test
::
testTableStylerPrSz
},
{
"table-style-rPr-sz.docx"
,
&
Test
::
testTableStylerPrSz
},
{
"math-literal.docx"
,
&
Test
::
testMathLiteral
},
{
"math-literal.docx"
,
&
Test
::
testMathLiteral
},
{
"fdo48557.odt"
,
&
Test
::
testFdo48557
},
{
"fdo48557.odt"
,
&
Test
::
testFdo48557
},
{
"i120928.docx"
,
&
Test
::
testI120928
},
};
};
// Don't test the first import of these, for some reason those tests fail
// Don't test the first import of these, for some reason those tests fail
const
char
*
aBlacklist
[]
=
{
const
char
*
aBlacklist
[]
=
{
...
@@ -672,6 +674,26 @@ void Test::testFdo48557()
...
@@ -672,6 +674,26 @@ void Test::testFdo48557()
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
150
),
getProperty
<
sal_Int32
>
(
xFrame
,
"BottomBorderDistance"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
150
),
getProperty
<
sal_Int32
>
(
xFrame
,
"BottomBorderDistance"
));
}
}
void
Test
::
testI120928
()
{
// w:numPicBullet was ignored, leading to missing graphic bullet in numbering.
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
getStyles
(
"NumberingStyles"
)
->
getByName
(
"WWNum1"
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xLevels
(
xPropertySet
->
getPropertyValue
(
"NumberingRules"
),
uno
::
UNO_QUERY
);
uno
::
Sequence
<
beans
::
PropertyValue
>
aProps
;
xLevels
->
getByIndex
(
0
)
>>=
aProps
;
// 1st level
bool
bIsGraphic
=
false
;
for
(
int
i
=
0
;
i
<
aProps
.
getLength
();
++
i
)
{
const
beans
::
PropertyValue
&
rProp
=
aProps
[
i
];
if
(
rProp
.
Name
==
"NumberingType"
)
CPPUNIT_ASSERT_EQUAL
(
style
::
NumberingType
::
BITMAP
,
rProp
.
Value
.
get
<
sal_Int16
>
());
else
if
(
rProp
.
Name
==
"GraphicURL"
)
bIsGraphic
=
true
;
}
CPPUNIT_ASSERT_EQUAL
(
true
,
bIsGraphic
);
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
...
...
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
e63950dc
...
@@ -124,7 +124,6 @@ public:
...
@@ -124,7 +124,6 @@ public:
void
testFdo60922
();
void
testFdo60922
();
void
testFdo59273
();
void
testFdo59273
();
void
testTableWidth
();
void
testTableWidth
();
void
testI120928
();
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
#if !defined(MACOSX) && !defined(WNT)
...
@@ -200,7 +199,6 @@ void Test::run()
...
@@ -200,7 +199,6 @@ void Test::run()
{
"fdo60922.docx"
,
&
Test
::
testFdo60922
},
{
"fdo60922.docx"
,
&
Test
::
testFdo60922
},
{
"fdo59273.docx"
,
&
Test
::
testFdo59273
},
{
"fdo59273.docx"
,
&
Test
::
testFdo59273
},
{
"table_width.docx"
,
&
Test
::
testTableWidth
},
{
"table_width.docx"
,
&
Test
::
testTableWidth
},
{
"i120928.docx"
,
&
Test
::
testI120928
},
};
};
header
();
header
();
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
...
@@ -1315,27 +1313,6 @@ void Test::testTableWidth()
...
@@ -1315,27 +1313,6 @@ void Test::testTableWidth()
CPPUNIT_ASSERT_EQUAL
(
true
,
bool
(
getProperty
<
sal_Bool
>
(
xTables
->
getByIndex
(
0
),
"IsWidthRelative"
)));
CPPUNIT_ASSERT_EQUAL
(
true
,
bool
(
getProperty
<
sal_Bool
>
(
xTables
->
getByIndex
(
0
),
"IsWidthRelative"
)));
}
}
void
Test
::
testI120928
()
{
// w:numPicBullet was ignored, leading to missing graphic bullet in numbering.
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
getStyles
(
"NumberingStyles"
)
->
getByName
(
"WWNum1"
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xLevels
(
xPropertySet
->
getPropertyValue
(
"NumberingRules"
),
uno
::
UNO_QUERY
);
uno
::
Sequence
<
beans
::
PropertyValue
>
aProps
;
xLevels
->
getByIndex
(
0
)
>>=
aProps
;
// 1st level
bool
bIsGraphic
=
false
;
for
(
int
i
=
0
;
i
<
aProps
.
getLength
();
++
i
)
{
const
beans
::
PropertyValue
&
rProp
=
aProps
[
i
];
if
(
rProp
.
Name
==
"NumberingType"
)
CPPUNIT_ASSERT_EQUAL
(
style
::
NumberingType
::
BITMAP
,
rProp
.
Value
.
get
<
sal_Int16
>
());
else
if
(
rProp
.
Name
==
"GraphicURL"
)
bIsGraphic
=
true
;
}
CPPUNIT_ASSERT_EQUAL
(
true
,
bIsGraphic
);
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
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