diff options
author | Oleg Schelykalnov <olegshtch@yandex.ru> | 2020-06-19 09:37:56 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-09-24 13:12:39 +0200 |
commit | b95611917f53d8c304b9720af1388b6d73f99631 (patch) | |
tree | fb3e14a1112093cacf07fd06bf95064251865a4e | |
parent | 11eed18fea97267cf75ea575e71fd60bd6f317f6 (diff) |
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@libreoffice.org>
-rwxr-xr-x | sw/qa/python/xtextfieldssupplier.py | 5 |
1 files changed, 4 insertions, 1 deletions
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" |