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
1cec392e
Kaydet (Commit)
1cec392e
authored
Ock 04, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#793262 testcase
üst
60ec497e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
n793262.docx
sw/qa/extras/ooxmlimport/data/n793262.docx
+0
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+18
-0
No files found.
sw/qa/extras/ooxmlimport/data/n793262.docx
0 → 100755
Dosyayı görüntüle @
1cec392e
File added
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
1cec392e
...
@@ -111,6 +111,7 @@ public:
...
@@ -111,6 +111,7 @@ public:
void
testN780645
();
void
testN780645
();
void
testFineTableDash
();
void
testFineTableDash
();
void
testN792778
();
void
testN792778
();
void
testN793262
();
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
#if !defined(MACOSX) && !defined(WNT)
...
@@ -174,6 +175,7 @@ void Test::run()
...
@@ -174,6 +175,7 @@ void Test::run()
{
"n780645.docx"
,
&
Test
::
testN780645
},
{
"n780645.docx"
,
&
Test
::
testN780645
},
{
"tableborder-finedash.docx"
,
&
Test
::
testFineTableDash
},
{
"tableborder-finedash.docx"
,
&
Test
::
testFineTableDash
},
{
"n792778.docx"
,
&
Test
::
testN792778
},
{
"n792778.docx"
,
&
Test
::
testN792778
},
{
"n793262.docx"
,
&
Test
::
testN793262
},
};
};
header
();
header
();
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
...
@@ -1096,6 +1098,22 @@ void Test::testN792778()
...
@@ -1096,6 +1098,22 @@ void Test::testN792778()
xInnerShape
.
set
(
xInnerGroupShape
->
getByIndex
(
0
),
uno
::
UNO_QUERY
);
xInnerShape
.
set
(
xInnerGroupShape
->
getByIndex
(
0
),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
11684
),
xInnerShape
->
getPosition
().
Y
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
11684
),
xInnerShape
->
getPosition
().
Y
);
}
}
void
Test
::
testN793262
()
{
uno
::
Reference
<
container
::
XEnumerationAccess
>
xHeaderText
=
getProperty
<
uno
::
Reference
<
container
::
XEnumerationAccess
>
>
(
getStyles
(
"PageStyles"
)
->
getByName
(
DEFAULT_STYLE
),
"HeaderText"
);
uno
::
Reference
<
container
::
XEnumeration
>
xHeaderParagraphs
(
xHeaderText
->
createEnumeration
());
xHeaderParagraphs
->
nextElement
();
// Font size of the last empty paragraph in the header was ignored, this was 11.
CPPUNIT_ASSERT_EQUAL
(
16.
f
,
getProperty
<
float
>
(
xHeaderParagraphs
->
nextElement
(),
"CharHeight"
));
uno
::
Reference
<
text
::
XTextTablesSupplier
>
xTablesSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xTables
(
xTablesSupplier
->
getTextTables
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
text
::
XTextTable
>
xTable
(
xTables
->
getByIndex
(
0
),
uno
::
UNO_QUERY
);
// Cell margins as direct formatting were ignored, this was 0.
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
76
),
getProperty
<
sal_Int32
>
(
xTable
->
getCellByName
(
"A1"
),
"TopBorderDistance"
));
}
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