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
e4972543
Kaydet (Commit)
e4972543
authored
Kas 10, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix build.
Change-Id: I91599766e607b26d2c71006c9543a2bd952e228a
üst
62ddb5bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
subsequent_export-test.cxx
sc/qa/unit/subsequent_export-test.cxx
+2
-3
globalfilter.cxx
sw/qa/extras/globalfilter/globalfilter.cxx
+4
-5
No files found.
sc/qa/unit/subsequent_export-test.cxx
Dosyayı görüntüle @
e4972543
...
...
@@ -2265,7 +2265,7 @@ void ScExportTest::testFunctionsExcel2010ODS()
void
ScExportTest
::
testSwappedOutImageExport
()
{
const
OUString
aFilterNames
[]
=
{
const
char
*
aFilterNames
[]
=
{
"calc8"
,
"MS Excel 97"
,
"Calc Office Open XML"
,
...
...
@@ -2282,8 +2282,7 @@ void ScExportTest::testSwappedOutImageExport()
// Check whether the export code swaps in the image which was swapped out before.
ScDocShellRef
xDocSh
=
loadDoc
(
"document_with_two_images."
,
ODS
);
const
OString
sFailedMessage
=
OString
(
"Failed on filter: "
)
+
OUStringToOString
(
aFilterNames
[
nFilter
],
RTL_TEXTENCODING_ASCII_US
);
const
OString
sFailedMessage
=
OString
(
"Failed on filter: "
)
+
aFilterNames
[
nFilter
];
CPPUNIT_ASSERT_MESSAGE
(
sFailedMessage
.
getStr
(),
xDocSh
.
Is
());
// Export the document and import again for a check
...
...
sw/qa/extras/globalfilter/globalfilter.cxx
Dosyayı görüntüle @
e4972543
...
...
@@ -33,7 +33,7 @@ public:
void
Test
::
testSwappedOutImageExport
()
{
const
OUString
aFilterNames
[]
=
{
const
char
*
aFilterNames
[]
=
{
"writer8"
,
"Rich Text Format"
,
"MS Word 97"
,
...
...
@@ -53,14 +53,11 @@ void Test::testSwappedOutImageExport()
mxComponent
->
dispose
();
mxComponent
=
loadFromDesktop
(
getURLFromSrc
(
"/sw/qa/extras/globalfilter/data/document_with_two_images.odt"
),
"com.sun.star.text.TextDocument"
);
const
OString
sFailedMessage
=
OString
(
"Failed on filter: "
)
+
OUStringToOString
(
aFilterNames
[
nFilter
],
RTL_TEXTENCODING_ASCII_US
);
// Export the document and import again for a check
uno
::
Reference
<
frame
::
XStorable
>
xStorable
(
mxComponent
,
uno
::
UNO_QUERY
);
utl
::
MediaDescriptor
aMediaDescriptor
;
aMediaDescriptor
[
"FilterName"
]
<<=
aFilterNames
[
nFilter
]
;
aMediaDescriptor
[
"FilterName"
]
<<=
OUString
::
createFromAscii
(
aFilterNames
[
nFilter
])
;
utl
::
TempFile
aTempFile
;
aTempFile
.
EnableKillingFile
();
...
...
@@ -72,6 +69,8 @@ void Test::testSwappedOutImageExport()
// Check whether graphic exported well after it was swapped out
uno
::
Reference
<
drawing
::
XDrawPageSupplier
>
xDrawPageSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xDraws
(
xDrawPageSupplier
->
getDrawPage
(),
uno
::
UNO_QUERY
);
const
OString
sFailedMessage
=
OString
(
"Failed on filter: "
)
+
aFilterNames
[
nFilter
];
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
sFailedMessage
.
getStr
(),
static_cast
<
sal_Int32
>
(
2
),
xDraws
->
getCount
());
// First image
...
...
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