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
0d2c1e64
Kaydet (Commit)
0d2c1e64
authored
Şub 21, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
OOXML roundtrip test for w14:glow
Change-Id: I80dd71bad02be980229899845c1451df6f34dca5
üst
3554f377
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
TextEffects.docx
sw/qa/extras/ooxmlexport/data/TextEffects.docx
+0
-0
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+12
-0
No files found.
sw/qa/extras/ooxmlexport/data/TextEffects.docx
0 → 100644
Dosyayı görüntüle @
0d2c1e64
File added
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
0d2c1e64
...
@@ -156,6 +156,7 @@ xmlNodeSetPtr Test::getXPathNode(xmlDocPtr pXmlDoc, const OString& rXPath)
...
@@ -156,6 +156,7 @@ xmlNodeSetPtr Test::getXPathNode(xmlDocPtr pXmlDoc, const OString& rXPath)
xmlXPathRegisterNs
(
pXmlXpathCtx
,
BAD_CAST
(
"a"
),
BAD_CAST
(
"http://schemas.openxmlformats.org/drawingml/2006/main"
));
xmlXPathRegisterNs
(
pXmlXpathCtx
,
BAD_CAST
(
"a"
),
BAD_CAST
(
"http://schemas.openxmlformats.org/drawingml/2006/main"
));
xmlXPathRegisterNs
(
pXmlXpathCtx
,
BAD_CAST
(
"pic"
),
BAD_CAST
(
"http://schemas.openxmlformats.org/drawingml/2006/picture"
));
xmlXPathRegisterNs
(
pXmlXpathCtx
,
BAD_CAST
(
"pic"
),
BAD_CAST
(
"http://schemas.openxmlformats.org/drawingml/2006/picture"
));
xmlXPathRegisterNs
(
pXmlXpathCtx
,
BAD_CAST
(
"rels"
),
BAD_CAST
(
"http://schemas.openxmlformats.org/package/2006/relationships"
));
xmlXPathRegisterNs
(
pXmlXpathCtx
,
BAD_CAST
(
"rels"
),
BAD_CAST
(
"http://schemas.openxmlformats.org/package/2006/relationships"
));
xmlXPathRegisterNs
(
pXmlXpathCtx
,
BAD_CAST
(
"w14"
),
BAD_CAST
(
"http://schemas.microsoft.com/office/word/2010/wordml"
));
xmlXPathObjectPtr
pXmlXpathObj
=
xmlXPathEvalExpression
(
BAD_CAST
(
rXPath
.
getStr
()),
pXmlXpathCtx
);
xmlXPathObjectPtr
pXmlXpathObj
=
xmlXPathEvalExpression
(
BAD_CAST
(
rXPath
.
getStr
()),
pXmlXpathCtx
);
return
pXmlXpathObj
->
nodesetval
;
return
pXmlXpathObj
->
nodesetval
;
}
}
...
@@ -3419,6 +3420,17 @@ DECLARE_OOXMLEXPORT_TEST(testDMLGroupShapeParaSpacing, "dml-groupshape-paraspaci
...
@@ -3419,6 +3420,17 @@ DECLARE_OOXMLEXPORT_TEST(testDMLGroupShapeParaSpacing, "dml-groupshape-paraspaci
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
getProperty
<
sal_Int32
>
(
xRun
,
"ParaTopMargin"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
getProperty
<
sal_Int32
>
(
xRun
,
"ParaTopMargin"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
getProperty
<
sal_Int32
>
(
xRun
,
"ParaBottomMargin"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
getProperty
<
sal_Int32
>
(
xRun
,
"ParaBottomMargin"
));
}
}
DECLARE_OOXMLEXPORT_TEST
(
testW14TextEffects
,
"TextEffects.docx"
)
{
xmlDocPtr
pXmlDoc
=
parseExport
(
"word/document.xml"
);
if
(
!
pXmlDoc
)
return
;
CPPUNIT_ASSERT
(
getXPath
(
pXmlDoc
,
"/w:document/w:body/w:p/w:r[1]/w:rPr/w14:glow"
,
"rad"
).
match
(
"63500"
));
CPPUNIT_ASSERT
(
getXPath
(
pXmlDoc
,
"/w:document/w:body/w:p/w:r[2]/w:rPr/w14:glow"
,
"rad"
).
match
(
"228600"
));
}
#endif
#endif
CPPUNIT_PLUGIN_IMPLEMENT
();
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
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