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
6b894d17
Kaydet (Commit)
6b894d17
authored
Eyl 20, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Test HTML export of images & image properties.
Change-Id: Ib0bffab0e653dc9ad0cc5367fdbc6bdee02181d2
üst
03fe839d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
HTMLImage.odt
sw/qa/extras/htmlexport/data/HTMLImage.odt
+0
-0
htmlexport.cxx
sw/qa/extras/htmlexport/htmlexport.cxx
+30
-0
No files found.
sw/qa/extras/htmlexport/data/HTMLImage.odt
0 → 100644
Dosyayı görüntüle @
6b894d17
File added
sw/qa/extras/htmlexport/htmlexport.cxx
Dosyayı görüntüle @
6b894d17
...
...
@@ -162,6 +162,36 @@ DECLARE_HTMLEXPORT_TEST(testSkipImageEmbeddedDocument, "skipimage-embedded-docum
assertXPathContent
(
pDoc
,
"/html/body/p/span/p/span"
,
"Inner."
);
}
DECLARE_HTMLEXPORT_TEST
(
testExportImageProperties
,
"HTMLImage.odt"
)
{
htmlDocPtr
pDoc
=
parseHtml
(
maTempFile
);
CPPUNIT_ASSERT
(
pDoc
);
assertXPath
(
pDoc
,
"/html/body"
,
1
);
assertXPath
(
pDoc
,
"/html/body/p/map/area"
,
"shape"
,
"poly"
);
assertXPath
(
pDoc
,
"/html/body/p/map/area"
,
"href"
,
"http://www.microsoft.com/"
);
assertXPath
(
pDoc
,
"/html/body/p/map/area"
,
"target"
,
"_self"
);
assertXPath
(
pDoc
,
"/html/body/p/map/area"
,
"alt"
,
"microsoft"
);
assertXPath
(
pDoc
,
"/html/body/p/a"
,
1
);
assertXPath
(
pDoc
,
"/html/body/p/a"
,
"href"
,
"http://www.google.com/"
);
assertXPath
(
pDoc
,
"/html/body/p/a/font"
,
1
);
assertXPath
(
pDoc
,
"/html/body/p/a/font"
,
"color"
,
"#ff0000"
);
assertXPath
(
pDoc
,
"/html/body/p/a/font/img"
,
1
);
assertXPath
(
pDoc
,
"/html/body/p/a/font/img"
,
"name"
,
"Text"
);
assertXPath
(
pDoc
,
"/html/body/p/a/font/img"
,
"alt"
,
"Four colors"
);
assertXPath
(
pDoc
,
"/html/body/p/a/font/img"
,
"align"
,
"middle"
);
assertXPath
(
pDoc
,
"/html/body/p/a/font/img"
,
"hspace"
,
"38"
);
assertXPath
(
pDoc
,
"/html/body/p/a/font/img"
,
"vspace"
,
"19"
);
assertXPath
(
pDoc
,
"/html/body/p/a/font/img"
,
"width"
,
"222"
);
assertXPath
(
pDoc
,
"/html/body/p/a/font/img"
,
"height"
,
"222"
);
assertXPath
(
pDoc
,
"/html/body/p/a/font/img"
,
"border"
,
"3"
);
assertXPath
(
pDoc
,
"/html/body/p/a/font/img"
,
"usemap"
,
"#map1"
);
}
CPPUNIT_PLUGIN_IMPLEMENT
();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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