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
74c8d4a8
Kaydet (Commit)
74c8d4a8
authored
Tem 28, 2017
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw htmlexport: Consistent naming in the test.
Change-Id: I608b818063f3ac66c6b36f9f8d221a54bfe1be24
üst
c15c9346
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
htmlexport.cxx
sw/qa/extras/htmlexport/htmlexport.cxx
+5
-5
No files found.
sw/qa/extras/htmlexport/htmlexport.cxx
Dosyayı görüntüle @
74c8d4a8
...
@@ -44,7 +44,7 @@ private:
...
@@ -44,7 +44,7 @@ private:
virtual
std
::
unique_ptr
<
Resetter
>
preTest
(
const
char
*
filename
)
override
virtual
std
::
unique_ptr
<
Resetter
>
preTest
(
const
char
*
filename
)
override
{
{
if
(
getTestName
().
indexOf
(
"SkipImage"
)
!=
-
1
)
if
(
getTestName
().
indexOf
(
"SkipImage
s
"
)
!=
-
1
)
setFilterOptions
(
"SkipImages"
);
setFilterOptions
(
"SkipImages"
);
else
else
setFilterOptions
(
""
);
setFilterOptions
(
""
);
...
@@ -138,7 +138,7 @@ DECLARE_HTMLEXPORT_TEST(testExportOfImages, "textAndImage.docx")
...
@@ -138,7 +138,7 @@ DECLARE_HTMLEXPORT_TEST(testExportOfImages, "textAndImage.docx")
assertXPath
(
pDoc
,
"/html/body/p/img"
,
1
);
assertXPath
(
pDoc
,
"/html/body/p/img"
,
1
);
}
}
DECLARE_HTMLEXPORT_TEST
(
testExportOfImagesWithSkipImageEnabled
,
"textAndImage.docx"
)
DECLARE_HTMLEXPORT_TEST
(
testExportOfImagesWithSkipImage
s
Enabled
,
"textAndImage.docx"
)
{
{
htmlDocPtr
pDoc
=
parseHtml
(
maTempFile
);
htmlDocPtr
pDoc
=
parseHtml
(
maTempFile
);
CPPUNIT_ASSERT
(
pDoc
);
CPPUNIT_ASSERT
(
pDoc
);
...
@@ -147,7 +147,7 @@ DECLARE_HTMLEXPORT_TEST(testExportOfImagesWithSkipImageEnabled, "textAndImage.do
...
@@ -147,7 +147,7 @@ DECLARE_HTMLEXPORT_TEST(testExportOfImagesWithSkipImageEnabled, "textAndImage.do
assertXPath
(
pDoc
,
"/html/body/p/img"
,
0
);
assertXPath
(
pDoc
,
"/html/body/p/img"
,
0
);
}
}
DECLARE_HTMLEXPORT_TEST
(
testSkipImageEmbedded
,
"skipimage-embedded.doc"
)
DECLARE_HTMLEXPORT_TEST
(
testSkipImage
s
Embedded
,
"skipimage-embedded.doc"
)
{
{
// Embedded spreadsheet was exported as image, so content was lost. Make
// Embedded spreadsheet was exported as image, so content was lost. Make
// sure it's exported as HTML instead.
// sure it's exported as HTML instead.
...
@@ -162,9 +162,9 @@ DECLARE_HTMLEXPORT_TEST(testSkipImageEmbedded, "skipimage-embedded.doc")
...
@@ -162,9 +162,9 @@ DECLARE_HTMLEXPORT_TEST(testSkipImageEmbedded, "skipimage-embedded.doc")
assertXPath
(
pDoc
,
"//span/table"
,
1
);
assertXPath
(
pDoc
,
"//span/table"
,
1
);
}
}
DECLARE_HTMLEXPORT_TEST
(
testSkipImageEmbeddedDocument
,
"skipimage-embedded-document.docx"
)
DECLARE_HTMLEXPORT_TEST
(
testSkipImage
s
EmbeddedDocument
,
"skipimage-embedded-document.docx"
)
{
{
// Similar to testSkipImageEmbedded, but with an embedded Writer object,
// Similar to testSkipImage
s
Embedded, but with an embedded Writer object,
// not a Calc one, and this time OOXML, not WW8.
// not a Calc one, and this time OOXML, not WW8.
htmlDocPtr
pDoc
=
parseHtml
(
maTempFile
);
htmlDocPtr
pDoc
=
parseHtml
(
maTempFile
);
CPPUNIT_ASSERT
(
pDoc
);
CPPUNIT_ASSERT
(
pDoc
);
...
...
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