[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Wed Feb 24 14:49:50 UTC 2021
sw/qa/uitest/data/tdf140198.odt |binary
sw/qa/uitest/writer_tests7/forms.py | 15 +++++++++++++++
2 files changed, 15 insertions(+)
New commits:
commit c89f5fa26a8ec6e36ddd5562a5c3c276f9e4ff80
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Feb 24 12:31:29 2021 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Feb 24 15:49:07 2021 +0100
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 at libreoffice.org>
diff --git a/sw/qa/uitest/data/tdf140198.odt b/sw/qa/uitest/data/tdf140198.odt
new file mode 100644
index 000000000000..087466b8155a
Binary files /dev/null and b/sw/qa/uitest/data/tdf140198.odt 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
@@ -23,5 +23,20 @@ class Forms(UITestCase):
# AssertionError: 'Yes' != 'No'
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:
More information about the Libreoffice-commits
mailing list