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

Zolnai Tamás tamas.zolnai at collabora.com
Sat Dec 28 11:19:29 PST 2013


 sw/qa/extras/inc/swmodeltestbase.hxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit a196148ea9a167c60a02184df069af7396cba1b6
Author: Zolnai Tamás <tamas.zolnai at collabora.com>
Date:   Sat Dec 28 20:15:49 2013 +0100

    Add hasProperty() method to test base needed by a new unit test
    
    Change-Id: I7e4be9794f44bf8f335ed2ff9dd00bf77e762206

diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx
index a9b2368..727580d 100644
--- a/sw/qa/extras/inc/swmodeltestbase.hxx
+++ b/sw/qa/extras/inc/swmodeltestbase.hxx
@@ -166,6 +166,12 @@ protected:
         return data;
     }
 
+    bool hasProperty(const uno::Reference<uno::XInterface>& obj, const OUString& name) const
+    {
+        uno::Reference<beans::XPropertySet> properties(obj, uno::UNO_QUERY_THROW);
+        return properties->getPropertySetInfo()->hasPropertyByName(name);
+    }
+
     /// Get number of paragraphs of the document.
     int getParagraphs()
     {


More information about the Libreoffice-commits mailing list