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
f7b5afc8
Kaydet (Commit)
f7b5afc8
authored
Mar 22, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
testcase for
62344016
Change-Id: I5d7544f38c5d48826cad18a655ffd3b621eb0ca2
üst
68579e60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
fdo55814.odt
sw/qa/extras/odfimport/data/fdo55814.odt
+0
-0
odfimport.cxx
sw/qa/extras/odfimport/odfimport.cxx
+16
-0
No files found.
sw/qa/extras/odfimport/data/fdo55814.odt
0 → 100644
Dosyayı görüntüle @
f7b5afc8
File added
sw/qa/extras/odfimport/odfimport.cxx
Dosyayı görüntüle @
f7b5afc8
...
...
@@ -45,6 +45,7 @@ public:
void
testFdo61952
();
void
testFdo60842
();
void
testFdo56272
();
void
testFdo55814
();
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
...
...
@@ -67,6 +68,7 @@ void Test::run()
{
"hello.odt"
,
&
Test
::
testFdo61952
},
{
"fdo60842.odt"
,
&
Test
::
testFdo60842
},
{
"fdo56272.odt"
,
&
Test
::
testFdo56272
},
{
"fdo55814.odt"
,
&
Test
::
testFdo55814
},
};
header
();
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
...
...
@@ -325,6 +327,20 @@ void Test::testFdo56272()
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
422
),
xShape
->
getPosition
().
Y
);
// Was -2371
}
void
Test
::
testFdo55814
()
{
uno
::
Reference
<
text
::
XTextFieldsSupplier
>
xTextFieldsSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XEnumerationAccess
>
xFieldsAccess
(
xTextFieldsSupplier
->
getTextFields
());
uno
::
Reference
<
container
::
XEnumeration
>
xFields
(
xFieldsAccess
->
createEnumeration
());
uno
::
Reference
<
beans
::
XPropertySet
>
xField
(
xFields
->
nextElement
(),
uno
::
UNO_QUERY
);
xField
->
setPropertyValue
(
"Content"
,
uno
::
makeAny
(
OUString
(
"Yes"
)));
uno
::
Reference
<
util
::
XRefreshable
>
(
xTextFieldsSupplier
->
getTextFields
(),
uno
::
UNO_QUERY
)
->
refresh
();
uno
::
Reference
<
text
::
XTextSectionsSupplier
>
xTextSectionsSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xSections
(
xTextSectionsSupplier
->
getTextSections
(),
uno
::
UNO_QUERY
);
// This was "0".
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"Hide==
\"
Yes
\"
"
),
getProperty
<
OUString
>
(
xSections
->
getByIndex
(
0
),
"Condition"
));
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
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