DOCX styles: Check that we roundtrip rPrDefaults.

Change-Id: I3aef9fdedf9877d1243940c429e05ff36f7fa760
This commit is contained in:
Jan Holesovsky
2013-10-04 20:21:55 +02:00
parent 9f8fb9fce0
commit 457e0aef52

View File

@@ -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()