diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-03-09 08:40:50 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-03-10 21:17:03 +0100 |
commit | 7e70b40d68469a53895197ef3ef804616793d0d6 (patch) | |
tree | bcd13451e1e0eeb8ca45dc140c41feb50ee0745d /sw/qa | |
parent | c300dc4338e878dd87d638f085b8093a79544378 (diff) |
MSForms: Fix removal of all items on the drop-down form field dialog
Change-Id: Idbb9cb80fd842bc01ee857709a825821c2bcffd2
Reviewed-on: https://gerrit.libreoffice.org/69009
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/uitest/writer_tests5/DropDownFormFieldPropertiesDialog.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/uitest/writer_tests5/DropDownFormFieldPropertiesDialog.py b/sw/qa/uitest/writer_tests5/DropDownFormFieldPropertiesDialog.py index 5628e83992e1..9b28759e4771 100644 --- a/sw/qa/uitest/writer_tests5/DropDownFormFieldPropertiesDialog.py +++ b/sw/qa/uitest/writer_tests5/DropDownFormFieldPropertiesDialog.py @@ -139,6 +139,15 @@ class dropDownFormFieldDialog(UITestCase): self.assertEqual(get_state_as_dict(itemsList.getChild("1"))["Text"], "3000") self.assertEqual(get_state_as_dict(itemsList.getChild("2"))["Text"], "4000") + # remove all items + itemsList.getChild("1").executeAction("SELECT", tuple()); + removeButton.executeAction("CLICK", tuple()) + removeButton.executeAction("CLICK", tuple()) + removeButton.executeAction("CLICK", tuple()) + + self.assertEqual(get_state_as_dict(removeButton)["Enabled"], "false") + self.assertEqual(get_state_as_dict(itemsList)["Children"], "1") + xOKBtn = xDialog.getChild("ok") self.ui_test.close_dialog_through_button(xOKBtn) |