sw/qa/uitest/writer_tests5/DateFormFieldPropertiesDialog.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit 80569dc996a9a814ad7c2e729f30443debdbc6fe Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Tue Jul 4 06:20:36 2023 +0300 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Tue Jul 4 08:22:06 2023 +0200 Fix a UITest on Windows Change-Id: I9645cea2394f945355f86b3f6013d1d0f5117c76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153940 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sw/qa/uitest/writer_tests5/DateFormFieldPropertiesDialog.py b/sw/qa/uitest/writer_tests5/DateFormFieldPropertiesDialog.py index eb43912782bc..0c556b6c2b65 100644 --- a/sw/qa/uitest/writer_tests5/DateFormFieldPropertiesDialog.py +++ b/sw/qa/uitest/writer_tests5/DateFormFieldPropertiesDialog.py @@ -9,6 +9,7 @@ from uitest.framework import UITestCase from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file from libreoffice.uno.propertyvalue import mkPropertyValues +import platform class dateFormFieldDialog(UITestCase): @@ -138,6 +139,9 @@ class dateFormFieldDialog(UITestCase): xWriterEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "ALT+DOWN"})) xWriterEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "ESC"})) xWriterEdit.executeAction("TYPE", mkPropertyValues({"KEYCODE": "UP"})) - self.assertEqual(writer_doc.getText().getString(), "\nClick to choose a date") + if platform.system() == "Windows": + self.assertEqual(writer_doc.getText().getString(), "\r\nClick to choose a date") + else: + self.assertEqual(writer_doc.getText().getString(), "\nClick to choose a date") # vim: set shiftwidth=4 softtabstop=4 expandtab: