summaryrefslogtreecommitdiff
path: root/sw/qa/uitest/writer_dialogs/openDialogs.py
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa/uitest/writer_dialogs/openDialogs.py')
-rw-r--r--sw/qa/uitest/writer_dialogs/openDialogs.py29
1 files changed, 17 insertions, 12 deletions
diff --git a/sw/qa/uitest/writer_dialogs/openDialogs.py b/sw/qa/uitest/writer_dialogs/openDialogs.py
index 6c8cb699a7a6..b3b2ffcd7bad 100644
--- a/sw/qa/uitest/writer_dialogs/openDialogs.py
+++ b/sw/qa/uitest/writer_dialogs/openDialogs.py
@@ -1,5 +1,7 @@
# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
#
+# This file is part of the LibreOffice project.
+#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -7,16 +9,17 @@
from uitest.framework import UITestCase
import unittest
-from uitest.uihelper.testDialog import testDialog
+from uitest.uihelper.testDialog import testAppDialog
dialogs = [
{"command": ".uno:OpenRemote", "closeButton": "cancel"},
- {"command": ".uno:NewDoc", "closeButton": "close"},
+ #{"command": ".uno:NewDoc", "closeButton": "close"},
+ # tested in sw/qa/uitest/writer_tests2/tdf146375.py
{"command": ".uno:SaveAsTemplate", "closeButton": "cancel"},
- {"command": ".uno:ExportToPDF", "closeButton": "cancel", "skipTestOK": True},
- # export needs filesystem
- {"command": ".uno:ExportToEPUB", "closeButton": "cancel", "skipTestOK": True},
- # export needs filesystem
+ #{"command": ".uno:ExportToPDF", "closeButton": "cancel", "skipTestOK": True},
+ # tested in sw/qa/uitest/writer_tests4/exportToPDF.py
+ #{"command": ".uno:ExportToEPUB", "closeButton": "cancel", "skipTestOK": True},
+ # tested in writerperfect/qa/uitest/epubexport/epubexport.py
{"command": ".uno:Print", "closeButton": "cancel", "skipTestOK": True},
# no printer in CI
# tested in sw/qa/uitest/writer_tests5/tdf123378.py
@@ -36,8 +39,10 @@ dialogs = [
# tested in sw/qa/uitest/writer_tests2/exchangeDatabase.py
# {"command": ".uno:InsertBreak", "closeButton": "cancel"},
# tested in uitest/writer_tests/insertBreakDialog.py
- {"command": ".uno:InsertObject", "closeButton": "cancel"},
- {"command": ".uno:InsertSection", "closeButton": "cancel"},
+ # {"command": ".uno:InsertObject", "closeButton": "cancel"},
+ # tested in sw/qa/uitest/writer_tests4/tdf148395.py
+ # {"command": ".uno:InsertSection", "closeButton": "cancel"},
+ # tested in sw/qa/uitest/writer_tests7/tdf140863.py
{"command": ".uno:InsertFrame", "closeButton": "cancel"},
{"command": ".uno:InsertObjectFloatingFrame", "closeButton": "cancel"},
{"command": ".uno:FontworkGalleryFloater", "closeButton": "cancel"},
@@ -45,8 +50,8 @@ dialogs = [
# dialog opens but is not recognised by execute_dialog_through_command
# {"command": ".uno:InsertBookmark", "closeButton": "close"},
# tested in sw/qa/uitest/writer_tests2/bookmark.py
- # {"command": ".uno:InsertReferenceField", "closeButton": "close"},
- # dialog not closed
+ # {"command": ".uno:InsertReferenceField", "closeButton": "cancel"},
+ # Tested in sw/qa/uitest/writer_tests7/tdf135938.py
# {"command": ".uno:InsertSymbol", "closeButton": "cancel"},
# tested in sw/qa/uitest/writer_tests3/specialCharacter.py
# {"command": ".uno:InsertFootnoteDialog", "closeButton": "cancel"},
@@ -112,7 +117,7 @@ dialogs = [
# tested in uitest/writer_tests/customizeDialog.py
#{"command": ".uno:OptionsTreeDialog", "closeButton": "cancel"},
# used in various places
- {"command": ".uno:ShowLicense", "closeButton": "close"},
+ {"command": ".uno:ShowLicense", "closeButton": "close", "skipTestOK": True},
# {"command": ".uno:About", "closeButton": "close"},
# tested in sw/qa/uitest/writer_tests5/about_test.py
]
@@ -126,7 +131,7 @@ def load_tests(loader, tests, pattern):
# the test only checks if writer crashes by opening the dialog
class openDialogs(UITestCase):
def check(self, dialog):
- testDialog(self, "writer", dialog)
+ testAppDialog(self, "writer", dialog)
dialogCount = 0
for dialog in dialogs: