summaryrefslogtreecommitdiff
path: root/desktop/qa
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2019-07-25 19:02:47 +0100
committerMichael Meeks <michael.meeks@collabora.com>2019-08-02 11:41:50 -0400
commit666427b7a51eb16829d96563b53bcef2de541da1 (patch)
treea27bedcec718636fd1201bd4b73fa4c6382ae47c /desktop/qa
parent6e33d3046186b10f4ef49f3de8ee87adb100bab9 (diff)
clipboard: repair unit test so that it runs in the lok mode.
SwTransferable::AddSupportedFormats needs the kit to be active. Change-Id: Id84210eb2e526785f35dfae609d861c310885314
Diffstat (limited to 'desktop/qa')
-rw-r--r--desktop/qa/desktop_lib/test_desktop_lib.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx
index 6d6416a46e16..8a7934b9f0e2 100644
--- a/desktop/qa/desktop_lib/test_desktop_lib.cxx
+++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx
@@ -2641,6 +2641,9 @@ void DesktopLOKTest::testShowHideDialog()
void DesktopLOKTest::testComplexSelection()
{
+ // needed for SwTransferable to cope with the selection.
+ comphelper::LibreOfficeKit::setActive();
+
// Start with a blank text file and add contents.
LibLODocument_Impl* pDocument = loadDoc("blank_text.odt");
static const OString aText("hello world");