From eec6989574a1bc51ac5eb9c764d4d6b5aa8bbf9b Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Thu, 13 Jun 2019 13:01:44 +0300 Subject: add unit test to ensure revisionView is not added where unneeded related to tdf#89991. This is just a fail-safe to ensure that we don't start hiding "show changes" where we don't intend to. The default for a document that has recorded changes is to show the markup. Change-Id: I8c8b50b7947b9eea1e6dbedcbed091b2af9b5e87 Reviewed-on: https://gerrit.libreoffice.org/73951 Tested-by: Jenkins Reviewed-by: Justin Luth --- sw/qa/extras/ooxmlexport/ooxmlexport2.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sw') diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx index 6090a0591bf4..2f7955c6c41e 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx @@ -596,6 +596,11 @@ DECLARE_OOXMLEXPORT_TEST(testFdo64826, "fdo64826.docx") { // 'Track-Changes' (Track Revisions) wasn't exported. CPPUNIT_ASSERT_EQUAL(true, getProperty(mxComponent, "RecordChanges")); + // 'Show-Changes' should not be exported - default is true. + if (xmlDocPtr pXmlSettings = parseExport("word/settings.xml")) + { + assertXPath(pXmlSettings, "/w:settings/w:revisionView", 0); + } } DECLARE_OOXMLEXPORT_TEST(testPageBackground, "page-background.docx") -- cgit v1.2.3