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
a95c7069
Kaydet (Commit)
a95c7069
authored
May 15, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sd html test: move local vars on top, clean-up
Change-Id: Iac393561337825e316a974801a6061944b8fd72a
üst
2dd1f71b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
HtmlExportTest.cxx
sd/qa/unit/HtmlExportTest.cxx
+2
-2
sdmodeltestbase.hxx
sd/qa/unit/sdmodeltestbase.hxx
+7
-9
No files found.
sd/qa/unit/HtmlExportTest.cxx
Dosyayı görüntüle @
a95c7069
...
...
@@ -18,7 +18,7 @@ using namespace rtl;
class
SdHTMLFilterTest
:
public
SdModelTestBase
,
public
XmlTestTools
,
public
HtmlTestTools
{
private
:
htmlDocPtr
exportAnd
p
arseHtml
(
sd
::
DrawDocShellRef
&
xDocShRef
)
htmlDocPtr
exportAnd
P
arseHtml
(
sd
::
DrawDocShellRef
&
xDocShRef
)
{
FileFormat
*
pFormat
=
getFormat
(
HTML
);
OUString
aExt
=
OUString
(
"."
)
+
OUString
::
createFromAscii
(
pFormat
->
pName
);
...
...
@@ -33,7 +33,7 @@ public:
void
testHTMLExport
()
{
sd
::
DrawDocShellRef
xDocShRef
=
loadURL
(
getURLFromSrc
(
"/sd/qa/unit/data/HtmlExportTestDocument.odp"
));
htmlDocPtr
htmlDoc
=
exportAnd
p
arseHtml
(
xDocShRef
);
htmlDocPtr
htmlDoc
=
exportAnd
P
arseHtml
(
xDocShRef
);
assertXPath
(
htmlDoc
,
"/html"
,
1
);
assertXPath
(
htmlDoc
,
"/html/body"
,
1
);
...
...
sd/qa/unit/sdmodeltestbase.hxx
Dosyayı görüntüle @
a95c7069
...
...
@@ -63,10 +63,12 @@ FileFormat aFileFormats[] = {
/// Base class for filter tests loading or roundtriping a document, and asserting the document model.
class
SdModelTestBase
:
public
test
::
BootstrapFixture
,
public
unotest
::
MacrosTest
{
private
:
uno
::
Reference
<
uno
::
XInterface
>
mxDrawComponent
;
public
:
SdModelTestBase
()
{
}
{}
virtual
void
setUp
()
SAL_OVERRIDE
{
...
...
@@ -74,13 +76,13 @@ public:
// This is a bit of a fudge, we do this to ensure that ScGlobals::ensure,
// which is a private symbol to us, gets called
m
_
xDrawComponent
=
getMultiServiceFactory
()
->
createInstance
(
"com.sun.star.comp.Draw.PresentationDocument"
);
CPPUNIT_ASSERT_MESSAGE
(
"no impress component!"
,
m
_
xDrawComponent
.
is
());
mxDrawComponent
=
getMultiServiceFactory
()
->
createInstance
(
"com.sun.star.comp.Draw.PresentationDocument"
);
CPPUNIT_ASSERT_MESSAGE
(
"no impress component!"
,
mxDrawComponent
.
is
());
}
virtual
void
tearDown
()
SAL_OVERRIDE
{
uno
::
Reference
<
lang
::
XComponent
>
(
m_xDrawComponent
,
uno
::
UNO_QUERY_THROW
)
->
dispose
();
uno
::
Reference
<
lang
::
XComponent
>
(
mxDrawComponent
,
uno
::
UNO_QUERY_THROW
)
->
dispose
();
test
::
BootstrapFixture
::
tearDown
();
}
...
...
@@ -230,10 +232,6 @@ protected:
}
xDocShRef
->
DoClose
();
}
private
:
uno
::
Reference
<
uno
::
XInterface
>
m_xDrawComponent
;
};
#endif
...
...
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