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
988f1c71
Kaydet (Commit)
988f1c71
authored
Ara 16, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: extend some more OOXML export test to check embedded objects
Change-Id: Ie1047a2a213632f05b0ae091a3a7e4118a271082
üst
291f55ed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
104 additions
and
0 deletions
+104
-0
ooxmlexport5.cxx
sw/qa/extras/ooxmlexport/ooxmlexport5.cxx
+104
-0
No files found.
sw/qa/extras/ooxmlexport/ooxmlexport5.cxx
Dosyayı görüntüle @
988f1c71
...
@@ -382,6 +382,19 @@ DECLARE_OOXMLEXPORT_TEST(testContentTypeOLE, "fdo77759.docx")
...
@@ -382,6 +382,19 @@ DECLARE_OOXMLEXPORT_TEST(testContentTypeOLE, "fdo77759.docx")
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']"
,
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']"
,
"PartName"
,
"PartName"
,
"/word/embeddings/oleObject1.xlsx"
);
"/word/embeddings/oleObject1.xlsx"
);
// check the rels too
xmlDocPtr
pXmlDocRels
=
parseExport
(
"word/_rels/document.xml.rels"
);
assertXPath
(
pXmlDocRels
,
"/rels:Relationships/rels:Relationship[@Target='embeddings/oleObject1.xlsx']"
,
"Type"
,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package"
);
// check the content too
xmlDocPtr
pXmlDocContent
=
parseExport
(
"word/document.xml"
);
assertXPath
(
pXmlDocContent
,
"/w:document/w:body/w:p[1]/w:r/w:object/o:OLEObject"
,
"ProgID"
,
"Excel.Sheet.12"
);
}
}
DECLARE_OOXMLEXPORT_TEST
(
testfdo78420
,
"fdo78420.docx"
)
DECLARE_OOXMLEXPORT_TEST
(
testfdo78420
,
"fdo78420.docx"
)
...
@@ -587,6 +600,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo79968_sldx, "fdo79968.docx")
...
@@ -587,6 +600,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo79968_sldx, "fdo79968.docx")
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.openxmlformats-officedocument.presentationml.slide']"
,
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.openxmlformats-officedocument.presentationml.slide']"
,
"PartName"
,
"PartName"
,
"/word/embeddings/oleObject1.sldx"
);
"/word/embeddings/oleObject1.sldx"
);
// check the rels too
xmlDocPtr
pXmlDocRels
=
parseExport
(
"word/_rels/document.xml.rels"
);
assertXPath
(
pXmlDocRels
,
"/rels:Relationships/rels:Relationship[@Target='embeddings/oleObject1.sldx']"
,
"Type"
,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package"
);
// check the content too
xmlDocPtr
pXmlDocContent
=
parseExport
(
"word/document.xml"
);
assertXPath
(
pXmlDocContent
,
"/w:document/w:body/w:p[1]/w:r/w:object/o:OLEObject"
,
"ProgID"
,
"PowerPoint.Slide.12"
);
}
}
DECLARE_OOXMLEXPORT_TEST
(
testfdo79969_xlsb
,
"fdo79969_xlsb.docx"
)
DECLARE_OOXMLEXPORT_TEST
(
testfdo79969_xlsb
,
"fdo79969_xlsb.docx"
)
...
@@ -601,6 +627,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo79969_xlsb, "fdo79969_xlsb.docx")
...
@@ -601,6 +627,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo79969_xlsb, "fdo79969_xlsb.docx")
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.ms-excel.sheet.binary.macroEnabled.12']"
,
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.ms-excel.sheet.binary.macroEnabled.12']"
,
"PartName"
,
"PartName"
,
"/word/embeddings/oleObject1.xlsb"
);
"/word/embeddings/oleObject1.xlsb"
);
// check the rels too
xmlDocPtr
pXmlDocRels
=
parseExport
(
"word/_rels/document.xml.rels"
);
assertXPath
(
pXmlDocRels
,
"/rels:Relationships/rels:Relationship[@Target='embeddings/oleObject1.xlsb']"
,
"Type"
,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package"
);
// check the content too
xmlDocPtr
pXmlDocContent
=
parseExport
(
"word/document.xml"
);
assertXPath
(
pXmlDocContent
,
"/w:document/w:body/w:p[1]/w:r/w:object/o:OLEObject"
,
"ProgID"
,
"Excel.SheetBinaryMacroEnabled.12"
);
}
}
DECLARE_OOXMLEXPORT_TEST
(
testfdo80097
,
"fdo80097.docx"
)
DECLARE_OOXMLEXPORT_TEST
(
testfdo80097
,
"fdo80097.docx"
)
...
@@ -678,6 +717,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo79969_xlsm, "fdo79969_xlsm.docx")
...
@@ -678,6 +717,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo79969_xlsm, "fdo79969_xlsm.docx")
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.ms-excel.sheet.macroEnabled.12']"
,
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.ms-excel.sheet.macroEnabled.12']"
,
"PartName"
,
"PartName"
,
"/word/embeddings/oleObject1.xlsm"
);
"/word/embeddings/oleObject1.xlsm"
);
// check the rels too
xmlDocPtr
pXmlDocRels
=
parseExport
(
"word/_rels/document.xml.rels"
);
assertXPath
(
pXmlDocRels
,
"/rels:Relationships/rels:Relationship[@Target='embeddings/oleObject1.xlsm']"
,
"Type"
,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package"
);
// check the content too
xmlDocPtr
pXmlDocContent
=
parseExport
(
"word/document.xml"
);
assertXPath
(
pXmlDocContent
,
"/w:document/w:body/w:p[1]/w:r/w:object/o:OLEObject"
,
"ProgID"
,
"Excel.SheetMacroEnabled.12"
);
}
}
DECLARE_OOXMLEXPORT_TEST
(
testfdo80522
,
"fdo80522.docx"
)
DECLARE_OOXMLEXPORT_TEST
(
testfdo80522
,
"fdo80522.docx"
)
...
@@ -691,6 +743,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo80522,"fdo80522.docx")
...
@@ -691,6 +743,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo80522,"fdo80522.docx")
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.ms-word.document.macroEnabled.12']"
,
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.ms-word.document.macroEnabled.12']"
,
"PartName"
,
"PartName"
,
"/word/embeddings/oleObject1.docm"
);
"/word/embeddings/oleObject1.docm"
);
// check the rels too
xmlDocPtr
pXmlDocRels
=
parseExport
(
"word/_rels/document.xml.rels"
);
assertXPath
(
pXmlDocRels
,
"/rels:Relationships/rels:Relationship[@Target='embeddings/oleObject1.docm']"
,
"Type"
,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package"
);
// check the content too
xmlDocPtr
pXmlDocContent
=
parseExport
(
"word/document.xml"
);
assertXPath
(
pXmlDocContent
,
"/w:document/w:body/w:p[1]/w:r/w:object/o:OLEObject"
,
"ProgID"
,
"Word.DocumentMacroEnabled.12"
);
}
}
DECLARE_OOXMLEXPORT_TEST
(
testfdo80523_pptm
,
"fdo80523_pptm.docx"
)
DECLARE_OOXMLEXPORT_TEST
(
testfdo80523_pptm
,
"fdo80523_pptm.docx"
)
...
@@ -704,6 +769,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo80523_pptm,"fdo80523_pptm.docx")
...
@@ -704,6 +769,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo80523_pptm,"fdo80523_pptm.docx")
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.ms-powerpoint.presentation.macroEnabled.12']"
,
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.ms-powerpoint.presentation.macroEnabled.12']"
,
"PartName"
,
"PartName"
,
"/word/embeddings/oleObject1.pptm"
);
"/word/embeddings/oleObject1.pptm"
);
// check the rels too
xmlDocPtr
pXmlDocRels
=
parseExport
(
"word/_rels/document.xml.rels"
);
assertXPath
(
pXmlDocRels
,
"/rels:Relationships/rels:Relationship[@Target='embeddings/oleObject1.pptm']"
,
"Type"
,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package"
);
// check the content too
xmlDocPtr
pXmlDocContent
=
parseExport
(
"word/document.xml"
);
assertXPath
(
pXmlDocContent
,
"/w:document/w:body/w:p[1]/w:r/w:object/o:OLEObject"
,
"ProgID"
,
"PowerPoint.ShowMacroEnabled.12"
);
}
}
DECLARE_OOXMLEXPORT_TEST
(
testfdo80523_sldm
,
"fdo80523_sldm.docx"
)
DECLARE_OOXMLEXPORT_TEST
(
testfdo80523_sldm
,
"fdo80523_sldm.docx"
)
...
@@ -717,6 +795,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo80523_sldm,"fdo80523_sldm.docx")
...
@@ -717,6 +795,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo80523_sldm,"fdo80523_sldm.docx")
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.ms-powerpoint.slide.macroEnabled.12']"
,
"/ContentType:Types/ContentType:Override[@ContentType='application/vnd.ms-powerpoint.slide.macroEnabled.12']"
,
"PartName"
,
"PartName"
,
"/word/embeddings/oleObject1.sldm"
);
"/word/embeddings/oleObject1.sldm"
);
// check the rels too
xmlDocPtr
pXmlDocRels
=
parseExport
(
"word/_rels/document.xml.rels"
);
assertXPath
(
pXmlDocRels
,
"/rels:Relationships/rels:Relationship[@Target='embeddings/oleObject1.sldm']"
,
"Type"
,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package"
);
// check the content too
xmlDocPtr
pXmlDocContent
=
parseExport
(
"word/document.xml"
);
assertXPath
(
pXmlDocContent
,
"/w:document/w:body/w:p[1]/w:r/w:object/o:OLEObject"
,
"ProgID"
,
"PowerPoint.SlideMacroEnabled.12"
);
}
}
DECLARE_OOXMLEXPORT_TEST
(
testfdo80898
,
"fdo80898.docx"
)
DECLARE_OOXMLEXPORT_TEST
(
testfdo80898
,
"fdo80898.docx"
)
...
@@ -731,6 +822,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo80898, "fdo80898.docx")
...
@@ -731,6 +822,19 @@ DECLARE_OOXMLEXPORT_TEST(testfdo80898, "fdo80898.docx")
"/ContentType:Types/ContentType:Override[@ContentType='application/msword']"
,
"/ContentType:Types/ContentType:Override[@ContentType='application/msword']"
,
"PartName"
,
"PartName"
,
"/word/embeddings/oleObject1.doc"
);
"/word/embeddings/oleObject1.doc"
);
// check the rels too
xmlDocPtr
pXmlDocRels
=
parseExport
(
"word/_rels/document.xml.rels"
);
assertXPath
(
pXmlDocRels
,
"/rels:Relationships/rels:Relationship[@Target='embeddings/oleObject1.doc']"
,
"Type"
,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject"
);
// check the content too
xmlDocPtr
pXmlDocContent
=
parseExport
(
"word/document.xml"
);
assertXPath
(
pXmlDocContent
,
"/w:document/w:body/w:p[1]/w:r/w:object/o:OLEObject"
,
"ProgID"
,
"Word.Document.8"
);
}
}
DECLARE_OOXMLEXPORT_TEST
(
testTableCellWithDirectFormatting
,
"fdo80800.docx"
)
DECLARE_OOXMLEXPORT_TEST
(
testTableCellWithDirectFormatting
,
"fdo80800.docx"
)
...
...
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