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
87e0c9f6
Kaydet (Commit)
87e0c9f6
authored
Kas 05, 2015
tarafından
Marco Cecchetti
Kaydeden (comit)
Miklos Vajna
Kas 05, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sd: add support for svg export unit tests
Change-Id: Iafeaecad612b724c4eeb85e0c01c942afb6445d8
üst
d54aaea3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
149 additions
and
0 deletions
+149
-0
CppunitTest_sd_svg_export_tests.mk
sd/CppunitTest_sd_svg_export_tests.mk
+76
-0
Module_sd.mk
sd/Module_sd.mk
+1
-0
SVGExportTests.cxx
sd/qa/unit/SVGExportTests.cxx
+72
-0
svg-export-text-decorations.odp
sd/qa/unit/data/odp/svg-export-text-decorations.odp
+0
-0
No files found.
sd/CppunitTest_sd_svg_export_tests.mk
0 → 100644
Dosyayı görüntüle @
87e0c9f6
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
#*************************************************************************
$(eval $(call gb_CppunitTest_CppunitTest,sd_svg_export_tests))
$(eval $(call gb_CppunitTest_use_externals,sd_svg_export_tests,\
boost_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_add_exception_objects,sd_svg_export_tests, \
sd/qa/unit/SVGExportTests \
))
$(eval $(call gb_CppunitTest_use_libraries,sd_svg_export_tests, \
basegfx \
comphelper \
cppu \
cppuhelper \
drawinglayer \
editeng \
for \
forui \
i18nlangtag \
msfilter \
oox \
sal \
salhelper \
sax \
sd \
sfx \
sot \
svl \
svt \
svx \
svxcore \
test \
tl \
tk \
ucbhelper \
unotest \
utl \
vcl \
xo \
$(gb_UWINAPI) \
))
$(eval $(call gb_CppunitTest_set_include,sd_svg_export_tests,\
-I$(SRCDIR)/sd/source/ui/inc \
-I$(SRCDIR)/sd/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_api,sd_svg_export_tests,\
offapi \
udkapi \
))
$(eval $(call gb_CppunitTest_use_ure,sd_svg_export_tests))
$(eval $(call gb_CppunitTest_use_vcl,sd_svg_export_tests))
$(eval $(call gb_CppunitTest_use_rdb,sd_svg_export_tests,services))
$(eval $(call gb_CppunitTest_use_configuration,sd_svg_export_tests))
$(call gb_CppunitTest_get_target,sd_svg_export_tests) : $(call gb_AllLangResTarget_get_target,sd)
# vim: set noet sw=4 ts=4:
sd/Module_sd.mk
Dosyayı görüntüle @
87e0c9f6
...
...
@@ -34,6 +34,7 @@ $(eval $(call gb_Module_add_check_targets,sd,\
CppunitTest_sd_filters_test \
CppunitTest_sd_html_export_tests \
CppunitTest_sd_tiledrendering \
CppunitTest_sd_svg_export_tests \
))
endif
...
...
sd/qa/unit/SVGExportTests.cxx
0 → 100644
Dosyayı görüntüle @
87e0c9f6
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "sdmodeltestbase.hxx"
#include <test/xmltesttools.hxx>
#include <unotools/mediadescriptor.hxx>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/packages/zip/ZipFileAccess.hpp>
using
namespace
css
;
class
SdSVGFilterTest
:
public
SdModelTestBase
,
public
XmlTestTools
{
uno
::
Reference
<
lang
::
XComponent
>
mxComponent
;
utl
::
TempFile
maTempFile
;
public
:
SdSVGFilterTest
()
{
maTempFile
.
EnableKillingFile
();
}
virtual
void
setUp
()
override
{
SdModelTestBase
::
setUp
();
mxDesktop
.
set
(
css
::
frame
::
Desktop
::
create
(
comphelper
::
getComponentContext
(
getMultiServiceFactory
())));
}
virtual
void
tearDown
()
override
{
if
(
mxComponent
.
is
())
mxComponent
->
dispose
();
SdModelTestBase
::
tearDown
();
}
void
testSVGExportTextDecorations
()
{
mxComponent
=
loadFromDesktop
(
getURLFromSrc
(
"/sd/qa/unit/data/odp/svg-export-text-decorations.odp"
));
CPPUNIT_ASSERT
(
mxComponent
.
is
());
uno
::
Reference
<
frame
::
XStorable
>
xStorable
(
mxComponent
,
uno
::
UNO_QUERY
);
utl
::
MediaDescriptor
aMediaDescriptor
;
OUString
aFilterName
(
"impress_svg_Export"
);
aMediaDescriptor
[
"FilterName"
]
<<=
aFilterName
;
xStorable
->
storeToURL
(
maTempFile
.
GetURL
(),
aMediaDescriptor
.
getAsConstPropertyValueList
());
xmlDocPtr
pXmlDoc
=
parseXml
(
maTempFile
);
CPPUNIT_ASSERT
(
pXmlDoc
);
// TODO use assertXPath() here.
}
CPPUNIT_TEST_SUITE
(
SdSVGFilterTest
);
CPPUNIT_TEST
(
testSVGExportTextDecorations
);
CPPUNIT_TEST_SUITE_END
();
};
CPPUNIT_TEST_SUITE_REGISTRATION
(
SdSVGFilterTest
);
CPPUNIT_PLUGIN_IMPLEMENT
();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sd/qa/unit/data/odp/svg-export-text-decorations.odp
0 → 100644
Dosyayı görüntüle @
87e0c9f6
File added
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