diff options
author | Justin Luth <justin.luth@collabora.com> | 2019-06-13 13:01:44 +0300 |
---|---|---|
committer | Justin Luth <justin_luth@sil.org> | 2019-06-14 07:23:24 +0200 |
commit | eec6989574a1bc51ac5eb9c764d4d6b5aa8bbf9b (patch) | |
tree | 6a4fc6a4b619747171a91a05a0455a7e0f28a088 /sw | |
parent | 9ddda67db9bae50d20b093a39e4b7b52e8351ae4 (diff) |
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 <justin_luth@sil.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport2.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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<bool>(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") |