summaryrefslogtreecommitdiff
path: root/sw/qa/extras/uiwriter/uiwriter3.cxx
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-02-27 18:01:14 +0100
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2020-02-28 10:04:00 +0100
commit4a33c86a5b44184a3ed34398cd795a9d42ac1a72 (patch)
tree737c6512d526755f42adf986a97732b2fbc39832 /sw/qa/extras/uiwriter/uiwriter3.cxx
parentf4873d0e7972ec3ee646aa0d847c626ebe7d857f (diff)
tdf#128739: move UItest to CppunitTest
Change-Id: I597576c46ea4387d55f9ef576d05a84c88af1776 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89646 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/uiwriter/uiwriter3.cxx')
-rw-r--r--sw/qa/extras/uiwriter/uiwriter3.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter3.cxx b/sw/qa/extras/uiwriter/uiwriter3.cxx
index 5ca1eda7c42a..8e969a42f309 100644
--- a/sw/qa/extras/uiwriter/uiwriter3.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter3.cxx
@@ -49,4 +49,18 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf126626)
// without the fix, it crashes
dispatchCommand(mxComponent, ".uno:Paste", {});
}
+
+CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf128739)
+{
+ load(DATA_DIRECTORY, "tdf128739.docx");
+
+ SwXTextDocument* pTextDoc = dynamic_cast<SwXTextDocument*>(mxComponent.get());
+ CPPUNIT_ASSERT(pTextDoc);
+
+ dispatchCommand(mxComponent, ".uno:SelectAll", {});
+ dispatchCommand(mxComponent, ".uno:Cut", {});
+ dispatchCommand(mxComponent, ".uno:Paste", {});
+ // without the fix, it crashes
+ dispatchCommand(mxComponent, ".uno:Undo", {});
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */