[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - sw/qa

Oleg Schelykalnov (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 23 11:35:36 UTC 2020


 sw/qa/python/xtextfieldssupplier.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit def6e51cd56814aad3cbb8c1035da71c47927854
Author:     Oleg Schelykalnov <olegshtch at yandex.ru>
AuthorDate: Fri Jun 19 09:37:56 2020 +0300
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Sep 23 13:35:02 2020 +0200

    tdf#134112 sw: Test access of text field master object
    
    Change-Id: I793528faa6d73f7a97ddd4409ae8a1a3e611cea1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96678
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sw/qa/python/xtextfieldssupplier.py b/sw/qa/python/xtextfieldssupplier.py
index ab1e96f89246..f99b0fc85ab7 100755
--- a/sw/qa/python/xtextfieldssupplier.py
+++ b/sw/qa/python/xtextfieldssupplier.py
@@ -69,8 +69,11 @@ class TestXTextFieldsSupplier(unittest.TestCase):
         for masterName in masterNames:
             self.assertTrue(xFieldMasters.hasByName(masterName),
                             "TextFieldMaster has no element " + masterName)
-            self.assertIsNotNone(xFieldMasters.getByName(masterName),
+            master = xFieldMasters.getByName(masterName)
+            self.assertIsNotNone(master,
                                  "can't get " + masterName + " from TextFieldMaster")
+            self.assertIsNotNone(master.getPropertyValue("Name"),
+                                 "can't get Name property from TextFieldMaster " + masterName)
 
         # Ensure that invalid elements are not accessible
         invalidMasterName = "com.sun.star.text.fieldmaster.SetExpression.NoSuchMaster"


More information about the Libreoffice-commits mailing list