tdf#140198: sw: Add UItest
Change-Id: I0cb7286355883dc67b5bcde5ef43046dce224da1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111476
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sw/qa/uitest/data/tdf140198.odt b/sw/qa/uitest/data/tdf140198.odt
new file mode 100644
index 0000000..087466b
--- /dev/null
+++ b/sw/qa/uitest/data/tdf140198.odt
Binary files differ
diff --git a/sw/qa/uitest/writer_tests7/forms.py b/sw/qa/uitest/writer_tests7/forms.py
index d54236c..5c8f22b 100644
--- a/sw/qa/uitest/writer_tests7/forms.py
+++ b/sw/qa/uitest/writer_tests7/forms.py
@@ -24,4 +24,19 @@ class Forms(UITestCase):
self.assertEqual("Yes", get_state_as_dict(xChild)['SelectEntryText'])
self.ui_test.close_doc()
def test_tdf140198(self):
self.ui_test.load_file(get_url_for_data_file("tdf140198.odt"))
self.xUITest.executeCommand(".uno:JumpToNextFrame")
self.ui_test.execute_modeless_dialog_through_command(".uno:ControlProperties")
xChild = self.ui_test.wait_until_child_is_available('listbox-Text type')
# Without the fix in place, this test would have failed with
# AssertionError: 'Multi-line' != 'Single-line'
self.assertEqual("Multi-line", get_state_as_dict(xChild)['SelectEntryText'])
self.ui_test.close_doc()
# vim: set shiftwidth=4 softtabstop=4 expandtab: