From 457e0aef522583675247029e77cb212fb65d6cd1 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 4 Oct 2013 20:21:55 +0200 Subject: [PATCH] DOCX styles: Check that we roundtrip rPrDefaults. Change-Id: I3aef9fdedf9877d1243940c429e05ff36f7fa760 --- sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index 223f26f97238..f771ef9bae76 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -1402,6 +1402,10 @@ void Test::testStyleInheritance() assertXPath(pXmlStyles, "/w:styles/w:style[2]", "styleId", "Heading1"); // w:ind was copied from the parent (Normal) style without a good reason. assertXPath(pXmlStyles, "/w:styles/w:style[2]/w:pPr/w:ind", 0); + + // Check that we output real content of rPrDefault + assertXPath(pXmlStyles, "/w:styles/w:docDefaults/w:rPrDefault/w:rPr/w:rFonts", "ascii", "Times New Roman"); + assertXPath(pXmlStyles, "/w:styles/w:docDefaults/w:rPrDefault/w:rPr/w:lang", "bidi", "ar-SA"); } void Test::testSmartart()