From 48df717b0435b625ce12706fa19fc5717c63845f Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Tue, 17 Mar 2015 22:59:02 +0100 Subject: [PATCH] Generate textchangetrackingtests.xml by xsl * allows better maintainance of all duplicated content * adds a test variant for changes in style:footer-left --- tests/createTextChangeTrackingTests.xsl | 329 ++++++++++++ tests/do.sh | 2 + tests/textchangetrackingtests.xml | 680 ++++++++++++++---------- 3 files changed, 720 insertions(+), 291 deletions(-) create mode 100644 tests/createTextChangeTrackingTests.xsl diff --git a/tests/createTextChangeTrackingTests.xsl b/tests/createTextChangeTrackingTests.xsl new file mode 100644 index 0000000..f461312 --- /dev/null +++ b/tests/createTextChangeTrackingTests.xsl @@ -0,0 +1,329 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test + 2014-12-09T12:33:00 + Comment 1 + Comment 2 + + + + + Hello + + + + + + + + + Test + 2014-12-09T12:33:00 + Comment 1 + Comment 2 + + + + + Hello + + + + + + + + + Test + 2014-12-09T12:33:00 + Comment 1 + Comment 2 + + + + + Hello World! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + //o:text + //o:document-styles/o:master-styles/s:master-page[@s:name='Test']/ + + + + + + + + + + + + + + + + + + + + + + + + + + //o:text + //o:document-styles/o:master-styles/s:master-page[@s:name='Test']/ + + + + + + + + + + + + + + + + + + + + + + + + + + + //o:text + //o:document-styles/o:master-styles/s:master-page[@s:name='Test']/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/do.sh b/tests/do.sh index 99f1811..22fa6cd 100644 --- a/tests/do.sh +++ b/tests/do.sh @@ -8,3 +8,5 @@ xsltproc --stringparam mode odp createTextPropertiesTests.xsl createTextProperti xsltproc --stringparam mode odt createParagraphPropertiesTests.xsl createParagraphPropertiesTests.xsl | xmlstarlet fo > paragraph-properties-odt.xml xsltproc --stringparam mode ods createParagraphPropertiesTests.xsl createParagraphPropertiesTests.xsl | xmlstarlet fo > paragraph-properties-ods.xml xsltproc --stringparam mode odp createParagraphPropertiesTests.xsl createParagraphPropertiesTests.xsl | xmlstarlet fo > paragraph-properties-odp.xml + +xsltproc createTextChangeTrackingTests.xsl createTextChangeTrackingTests.xsl | xmlstarlet fo > textchangetrackingtests.xml diff --git a/tests/textchangetrackingtests.xml b/tests/textchangetrackingtests.xml index c5df5ce..88f2b12 100644 --- a/tests/textchangetrackingtests.xml +++ b/tests/textchangetrackingtests.xml @@ -1,292 +1,390 @@ - - - - - - - - - - - Test - 2014-12-09T12:33:00 - Comment 1 - Comment 2 - - - - - Hello - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Test - 2014-12-09T12:33:00 - Comment 1 - Comment 2 - - - - - Hello - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Test - 2014-12-09T12:33:00 - Comment 1 - Comment 2 - - - - - Hello World! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Test - 2014-12-09T12:33:00 - Comment 1 - Comment 2 - - - - - Hello - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Test - 2014-12-09T12:33:00 - Comment 1 - Comment 2 - - - - - Hello - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Test - 2014-12-09T12:33:00 - Comment 1 - Comment 2 - - - - - Hello World! - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + Test + 2014-12-09T12:33:00 + Comment 1 + Comment 2 + + + + + Hello + + + + + + + + + + + + + + + + + + + + + + + + + + + Test + 2014-12-09T12:33:00 + Comment 1 + Comment 2 + + + + + Hello + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test + 2014-12-09T12:33:00 + Comment 1 + Comment 2 + + + + + Hello World! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test + 2014-12-09T12:33:00 + Comment 1 + Comment 2 + + + + + Hello + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test + 2014-12-09T12:33:00 + Comment 1 + Comment 2 + + + + + Hello + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test + 2014-12-09T12:33:00 + Comment 1 + Comment 2 + + + + + Hello World! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test + 2014-12-09T12:33:00 + Comment 1 + Comment 2 + + + + + Hello + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test + 2014-12-09T12:33:00 + Comment 1 + Comment 2 + + + + + Hello + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test + 2014-12-09T12:33:00 + Comment 1 + Comment 2 + + + + + Hello World! + + + + + + + + + + + + + + + + + + + + + +