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
0261d499
Kaydet (Commit)
0261d499
authored
May 15, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw test: HtmlExportTest - assert pDoc exists, rename class
Change-Id: I5e17b8636236c2a0f78df80c36d82a3ba16a1c5f
üst
543a88d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
htmlexport.cxx
sw/qa/extras/htmlexport/htmlexport.cxx
+13
-15
No files found.
sw/qa/extras/htmlexport/htmlexport.cxx
Dosyayı görüntüle @
0261d499
...
...
@@ -22,13 +22,13 @@
using
namespace
rtl
;
class
Test
:
public
SwModelTestBase
,
public
HtmlTestTools
class
HtmlExport
Test
:
public
SwModelTestBase
,
public
HtmlTestTools
{
private
:
FieldUnit
m_eUnit
;
public
:
Test
()
:
HtmlExport
Test
()
:
SwModelTestBase
(
"/sw/qa/extras/htmlexport/data/"
,
"HTML (StarWriter)"
),
m_eUnit
(
FUNIT_NONE
)
{}
...
...
@@ -70,7 +70,7 @@ private:
}
};
#define DECLARE_HTMLEXPORT_ROUNDTRIP_TEST(TestName, filename) DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, Test)
#define DECLARE_HTMLEXPORT_ROUNDTRIP_TEST(TestName, filename) DECLARE_SW_ROUNDTRIP_TEST(TestName, filename,
HtmlExport
Test)
DECLARE_HTMLEXPORT_ROUNDTRIP_TEST
(
testFdo62336
,
"fdo62336.docx"
)
{
...
...
@@ -105,22 +105,20 @@ DECLARE_HTMLEXPORT_ROUNDTRIP_TEST(testCharacterBorder, "charborder.odt")
DECLARE_HTMLEXPORT_TEST
(
testExportOfImages
,
"textAndImage.docx"
)
{
htmlDocPtr
pDoc
=
parseHtml
(
m_aTempFile
);
if
(
pDoc
)
{
assertXPath
(
pDoc
,
"/html/body"
,
1
);
assertXPath
(
pDoc
,
"/html/body/p/img"
,
1
);
}
htmlDocPtr
pDoc
=
parseHtml
(
maTempFile
);
CPPUNIT_ASSERT
(
pDoc
);
assertXPath
(
pDoc
,
"/html/body"
,
1
);
assertXPath
(
pDoc
,
"/html/body/p/img"
,
1
);
}
DECLARE_HTMLEXPORT_TEST
(
testExportOfImagesWithSkipImageEnabled
,
"textAndImage.docx"
)
{
htmlDocPtr
pDoc
=
parseHtml
(
m_aTempFile
);
if
(
pDoc
)
{
assertXPath
(
pDoc
,
"/html/body"
,
1
);
assertXPath
(
pDoc
,
"/html/body/p/img"
,
0
);
}
htmlDocPtr
pDoc
=
parseHtml
(
maTempFile
);
CPPUNIT_ASSERT
(
pDoc
);
assertXPath
(
pDoc
,
"/html/body"
,
1
);
assertXPath
(
pDoc
,
"/html/body/p/img"
,
0
);
}
#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