[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sd/qa

Ashod Nakashian (via logerrit) logerrit at kemper.freedesktop.org
Mon Nov 25 12:49:42 UTC 2019


 sd/qa/unit/tiledrendering/tiledrendering.cxx |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

New commits:
commit a7d34357e400d4f2fb22f7dd3a44b1660a9db354
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Mon Jun 10 17:10:18 2019 -0400
Commit:     Ashod Nakashian <ashnakash at gmail.com>
CommitDate: Mon Nov 25 13:49:01 2019 +0100

    LOK: sd: fix unit-tests and add a couple simple ones
    
    (cherry picked from commit 76528630fcda5d195b89d9247cd62bdc04873912)
    
    Change-Id: I6b8f13bf9cb609a86b85135ceb96f865451b59ac
    Reviewed-on: https://gerrit.libreoffice.org/82436
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/sd/qa/unit/tiledrendering/tiledrendering.cxx b/sd/qa/unit/tiledrendering/tiledrendering.cxx
index 0822d2b047e0..a8d6b11a0ae4 100644
--- a/sd/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sd/qa/unit/tiledrendering/tiledrendering.cxx
@@ -72,6 +72,8 @@ public:
     virtual void setUp() override;
     virtual void tearDown() override;
 
+    void testCreateDestroy();
+    void testCreateView();
     void testRegisterCallback();
     void testPostKeyEvent();
     void testPostMouseEvent();
@@ -120,6 +122,8 @@ public:
     void testInsertDeletePageInvalidation();
 
     CPPUNIT_TEST_SUITE(SdTiledRenderingTest);
+    CPPUNIT_TEST(testCreateDestroy);
+    CPPUNIT_TEST(testCreateView);
     CPPUNIT_TEST(testRegisterCallback);
     CPPUNIT_TEST(testPostKeyEvent);
     CPPUNIT_TEST(testPostMouseEvent);
@@ -346,6 +350,19 @@ xmlDocPtr SdTiledRenderingTest::parseXmlDump()
     return xmlParseMemory(reinterpret_cast<const char*>(xmlBufferContent(m_pXmlBuffer)), xmlBufferLength(m_pXmlBuffer));
 }
 
+void SdTiledRenderingTest::testCreateDestroy()
+{
+    createDoc("dummy.odp");
+    // Nothing to do, the tearDown call should cleanup.
+}
+
+void SdTiledRenderingTest::testCreateView()
+{
+    createDoc("dummy.odp");
+
+    SfxLokHelper::createView();
+}
+
 void SdTiledRenderingTest::testRegisterCallback()
 {
     SdXImpressDocument* pXImpressDocument = createDoc("dummy.odp");


More information about the Libreoffice-commits mailing list