summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-02-24 12:31:29 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-02-24 15:49:07 +0100
commitc89f5fa26a8ec6e36ddd5562a5c3c276f9e4ff80 (patch)
tree97ecbc9345091944313f0109c3b603d34532c282
parent8c2251481a10dc26c969c72e7a5b7cc910996441 (diff)
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>
-rw-r--r--sw/qa/uitest/data/tdf140198.odtbin0 -> 8667 bytes
-rw-r--r--sw/qa/uitest/writer_tests7/forms.py15
2 files changed, 15 insertions, 0 deletions
diff --git a/sw/qa/uitest/data/tdf140198.odt b/sw/qa/uitest/data/tdf140198.odt
new file mode 100644
index 000000000000..087466b8155a
--- /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 d54236c64dd4..5c8f22ba08c2 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: