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
87d29c45
Kaydet (Commit)
87d29c45
authored
Haz 27, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#48335 testcase
Change-Id: I032ff9b65ec9c4d70a2247c7311c2c7292a411c7
üst
a0389598
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
CppunitTest_sw_subsequent_rtfexport.mk
sw/CppunitTest_sw_subsequent_rtfexport.mk
+2
-0
fdo48335.odt
sw/qa/extras/rtfexport/data/fdo48335.odt
+0
-0
rtfexport.cxx
sw/qa/extras/rtfexport/rtfexport.cxx
+30
-0
No files found.
sw/CppunitTest_sw_subsequent_rtfexport.mk
Dosyayı görüntüle @
87d29c45
...
@@ -69,7 +69,9 @@ $(eval $(call gb_CppunitTest_use_components,sw_subsequent_rtfexport,\
...
@@ -69,7 +69,9 @@ $(eval $(call gb_CppunitTest_use_components,sw_subsequent_rtfexport,\
filter/source/config/cache/filterconfig1 \
filter/source/config/cache/filterconfig1 \
framework/util/fwk \
framework/util/fwk \
i18npool/util/i18npool \
i18npool/util/i18npool \
package/source/xstor/xstor \
package/util/package2 \
package/util/package2 \
sax/source/expatwrap/expwrap \
sfx2/util/sfx \
sfx2/util/sfx \
svl/source/fsstor/fsstorage \
svl/source/fsstor/fsstorage \
svtools/util/svt \
svtools/util/svt \
...
...
sw/qa/extras/rtfexport/data/fdo48335.odt
0 → 100644
Dosyayı görüntüle @
87d29c45
File added
sw/qa/extras/rtfexport/rtfexport.cxx
Dosyayı görüntüle @
87d29c45
...
@@ -49,6 +49,7 @@ public:
...
@@ -49,6 +49,7 @@ public:
void
testFdo44174
();
void
testFdo44174
();
void
testFdo50087
();
void
testFdo50087
();
void
testFdo50831
();
void
testFdo50831
();
void
testFdo48335
();
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
#if !defined(MACOSX) && !defined(WNT)
...
@@ -58,6 +59,7 @@ public:
...
@@ -58,6 +59,7 @@ public:
CPPUNIT_TEST
(
testFdo44174
);
CPPUNIT_TEST
(
testFdo44174
);
CPPUNIT_TEST
(
testFdo50087
);
CPPUNIT_TEST
(
testFdo50087
);
CPPUNIT_TEST
(
testFdo50831
);
CPPUNIT_TEST
(
testFdo50831
);
CPPUNIT_TEST
(
testFdo48335
);
#endif
#endif
CPPUNIT_TEST_SUITE_END
();
CPPUNIT_TEST_SUITE_END
();
...
@@ -144,6 +146,34 @@ void Test::testFdo50831()
...
@@ -144,6 +146,34 @@ void Test::testFdo50831()
CPPUNIT_ASSERT_EQUAL
(
10.
f
,
fValue
);
CPPUNIT_ASSERT_EQUAL
(
10.
f
,
fValue
);
}
}
void
Test
::
testFdo48335
()
{
/*
* The problem was that we exported a fake pagebreak, make sure it's just a soft one now.
*
* oParas = ThisComponent.Text.createEnumeration
* oPara = oParas.nextElement
* oPara = oParas.nextElement
* oPara = oParas.nextElement
* oRuns = oPara.createEnumeration
* oRun = oRuns.nextElement
* xray oRun.TextPortionType 'was Text, should be SoftPageBreak
*/
roundtrip
(
"fdo48335.odt"
);
uno
::
Reference
<
text
::
XTextDocument
>
xTextDocument
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XEnumerationAccess
>
xParaEnumAccess
(
xTextDocument
->
getText
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XEnumeration
>
xParaEnum
=
xParaEnumAccess
->
createEnumeration
();
for
(
int
i
=
0
;
i
<
2
;
i
++
)
xParaEnum
->
nextElement
();
uno
::
Reference
<
container
::
XEnumerationAccess
>
xRunEnumAccess
(
xParaEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XEnumeration
>
xRunEnum
=
xRunEnumAccess
->
createEnumeration
();
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
xRunEnum
->
nextElement
(),
uno
::
UNO_QUERY
);
OUString
aValue
;
xPropertySet
->
getPropertyValue
(
"TextPortionType"
)
>>=
aValue
;
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"SoftPageBreak"
),
aValue
);
}
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