[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 6 19:12:42 UTC 2021
sw/qa/uitest/writer_tests7/forms.py | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
New commits:
commit 8bdf557876a65ab6d7860874ee2c7fd4ca3cc52b
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Tue Apr 6 13:51:56 2021 +0200
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Tue Apr 6 21:12:02 2021 +0200
tdf#141084: sw: Add UItest
Change-Id: Ib301adfe480217550b008f88938bb9cacc8c98ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113664
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/sw/qa/uitest/writer_tests7/forms.py b/sw/qa/uitest/writer_tests7/forms.py
index 179e8288cc2d..b931c5d6f3fb 100644
--- a/sw/qa/uitest/writer_tests7/forms.py
+++ b/sw/qa/uitest/writer_tests7/forms.py
@@ -42,6 +42,27 @@ class Forms(UITestCase):
self.ui_test.close_doc()
+ def test_tdf141084(self):
+
+ # Reuse document from tdf#140239
+ self.ui_test.load_file(get_url_for_data_file("tdf140239.odt"))
+
+ self.xUITest.executeCommand(".uno:JumpToNextFrame")
+
+ self.ui_test.execute_modeless_dialog_through_command(".uno:FormProperties")
+ xURL = self.ui_test.wait_until_child_is_available('urlcontrol-URL')
+ xFrame = self.ui_test.wait_until_child_is_available('combobox-Frame')
+
+ xURL.executeAction("TYPE", mkPropertyValues({"TEXT": "1"}))
+ xURL.executeAction("TYPE", mkPropertyValues({"TEXT": "2"}))
+ xURL.executeAction("TYPE", mkPropertyValues({"TEXT": "3"}))
+ xURL.executeAction("TYPE", mkPropertyValues({"TEXT": "4"}))
+ xURL.executeAction("TYPE", mkPropertyValues({"TEXT": "5"}))
+
+ # Without the fix in place, this test would have failed with
+ # AssertionError: '12345' != 'file:///tmp/tmp/5file:///tmp/tmp/4file://[40 chars]mp/1'
+ self.assertEqual("12345", get_state_as_dict(xURL)['Text'])
+
def test_tdf140239(self):
self.ui_test.load_file(get_url_for_data_file("tdf140239.odt"))
More information about the Libreoffice-commits
mailing list