diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-20 15:57:43 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-02-08 11:56:05 +0100 |
commit | 65665e501f30bf695282ab4caac349e091f389c5 (patch) | |
tree | 62dfb2b97743725a4f34b5503123b4a15b3bca78 /sw/qa/extras | |
parent | a39e4f071f50251cf02ca2cfdc418d2314b3a2e9 (diff) |
tdf#104814 Writer: accepting change tracking changes get stuck
Reviewed-on: https://gerrit.libreoffice.org/32273
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit b7b5c23e6979205a662d857bc1c83270fb4a43ec)
Reviewed-on: https://gerrit.libreoffice.org/32276
Reviewed-on: https://gerrit.libreoffice.org/32887
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 5b5f351785670e7310e0c074d8b96f2538cf0f2f)
Change-Id: Ie8e0919b53c0b21f480b62eec7c394554757a061
Diffstat (limited to 'sw/qa/extras')
-rw-r--r-- | sw/qa/extras/uiwriter/data/tdf104814.docx | bin | 0 -> 12830 bytes | |||
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sw/qa/extras/uiwriter/data/tdf104814.docx b/sw/qa/extras/uiwriter/data/tdf104814.docx Binary files differnew file mode 100644 index 000000000000..1f1c524a8914 --- /dev/null +++ b/sw/qa/extras/uiwriter/data/tdf104814.docx diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index d68e957ea474..61c2cbf10f83 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -203,6 +203,7 @@ public: void testTdf95699(); void testTdf104440(); void testTdf104425(); + void testTdf104814(); void testTdf105417(); CPPUNIT_TEST_SUITE(SwUiWriterTest); @@ -306,6 +307,7 @@ public: CPPUNIT_TEST(testTdf95699); CPPUNIT_TEST(testTdf104440); CPPUNIT_TEST(testTdf104425); + CPPUNIT_TEST(testTdf104814); CPPUNIT_TEST(testTdf105417); CPPUNIT_TEST_SUITE_END(); @@ -3543,6 +3545,18 @@ void SwUiWriterTest::testTdf105417() aWrap.SpellDocument(); } +// accepting change tracking gets stuck on change +void SwUiWriterTest::testTdf104814() +{ + SwDoc* const pDoc1(createDoc("tdf104814.docx")); + + SwEditShell* const pEditShell(pDoc1->GetEditShell()); + + // accept all redlines + while(pEditShell->GetRedlineCount()) + pEditShell->AcceptRedline(0); +} + CPPUNIT_TEST_SUITE_REGISTRATION(SwUiWriterTest); CPPUNIT_PLUGIN_IMPLEMENT(); |