tdf#138976 change "Cancel" button to "Close" in Template Manager dialog
Change-Id: I3e8cbdb70f70002f1fe2b873e899f25a72463358 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107704 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
4dcf2e22fa
commit
4484accf4d
@ -16,7 +16,7 @@ class Test(UITestCase):
|
||||
# Start Impress.
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
template = self.xUITest.getTopFocusWindow()
|
||||
self.ui_test.close_dialog_through_button(template.getChild("cancel"))
|
||||
self.ui_test.close_dialog_through_button(template.getChild("close"))
|
||||
doc = self.xUITest.getTopFocusWindow()
|
||||
editWin = doc.getChild("impress_win")
|
||||
# Select the title shape.
|
||||
|
@ -16,7 +16,7 @@ class Test(UITestCase):
|
||||
# Copy a string in Impress.
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
template = self.xUITest.getTopFocusWindow()
|
||||
self.ui_test.close_dialog_through_button(template.getChild("cancel"))
|
||||
self.ui_test.close_dialog_through_button(template.getChild("close"))
|
||||
doc = self.xUITest.getTopFocusWindow()
|
||||
editWin = doc.getChild("impress_win")
|
||||
# Select the title shape.
|
||||
|
@ -16,7 +16,7 @@ class autocorrectOptions(UITestCase):
|
||||
def test_autocorrect_options_impress(self):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
document = self.ui_test.get_component()
|
||||
|
||||
|
@ -12,7 +12,7 @@ class customSlideShow(UITestCase):
|
||||
MainDoc = self.ui_test.create_doc_in_start_center("impress")
|
||||
MainWindow = self.xUITest.getTopFocusWindow()
|
||||
TemplateDialog = self.xUITest.getTopFocusWindow()
|
||||
cancel = TemplateDialog.getChild("cancel")
|
||||
cancel = TemplateDialog.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(cancel)
|
||||
self.ui_test.execute_dialog_through_command(".uno:CustomShowDialog")
|
||||
CustomSlideShows = self.xUITest.getTopFocusWindow()
|
||||
|
@ -17,7 +17,7 @@ class ImpressDocumentProperties(UITestCase):
|
||||
def test_open_document_properties_impress(self):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
|
||||
self.ui_test.execute_dialog_through_command(".uno:SetDocumentProperties")
|
||||
|
@ -17,7 +17,7 @@ class insertSlide(UITestCase):
|
||||
def test_insert_slide(self):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
document = self.ui_test.get_component()
|
||||
self.assertEqual(document.DrawPages.getCount(), 1) #nr. of pages
|
||||
@ -34,7 +34,7 @@ class insertSlide(UITestCase):
|
||||
def test_tdf85360_insert_4th_slide(self):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
document = self.ui_test.get_component()
|
||||
self.assertEqual(document.DrawPages.getCount(), 1) #nr. of pages
|
||||
|
@ -16,7 +16,7 @@ class masterElements(UITestCase):
|
||||
def test_master_elements(self):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
document = self.ui_test.get_component()
|
||||
|
||||
|
@ -16,7 +16,7 @@ class renameSlide(UITestCase):
|
||||
def test_rename_slide(self):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
|
||||
self.ui_test.execute_dialog_through_command(".uno:RenamePage")
|
||||
|
@ -11,7 +11,7 @@ class slideShowSettings(UITestCase):
|
||||
MainDoc = self.ui_test.create_doc_in_start_center("impress")
|
||||
MainWindow = self.xUITest.getTopFocusWindow()
|
||||
TemplateDialog = self.xUITest.getTopFocusWindow()
|
||||
cancel = TemplateDialog.getChild("cancel")
|
||||
cancel = TemplateDialog.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(cancel)
|
||||
self.xUITest.executeCommand(".uno:InsertPage")
|
||||
self.ui_test.execute_dialog_through_command(".uno:PresentationDialog")
|
||||
|
@ -12,7 +12,7 @@ class tdf126605(UITestCase):
|
||||
def test_run(self):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
|
||||
xDoc = self.xUITest.getTopFocusWindow()
|
||||
|
@ -12,7 +12,7 @@ class tdf129346(UITestCase):
|
||||
def test_run(self):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
|
||||
xToolkit = self.xContext.ServiceManager.createInstance('com.sun.star.awt.Toolkit')
|
||||
|
@ -13,7 +13,7 @@ class tdf91762(UITestCase):
|
||||
def test_tdf91762(self):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
|
||||
self.xUITest.executeCommand(".uno:AssignLayout?WhatLayout:long=1")
|
||||
|
@ -148,10 +148,11 @@
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="cancel">
|
||||
<property name="label">gtk-cancel</property>
|
||||
<object class="GtkButton" id="close">
|
||||
<property name="label">gtk-close</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="receives-default">True</property>
|
||||
<property name="use-stock">True</property>
|
||||
</object>
|
||||
@ -770,7 +771,7 @@
|
||||
<action-widgets>
|
||||
<action-widget response="-11">help</action-widget>
|
||||
<action-widget response="-5">ok</action-widget>
|
||||
<action-widget response="-6">cancel</action-widget>
|
||||
<action-widget response="-7">close</action-widget>
|
||||
</action-widgets>
|
||||
</object>
|
||||
</interface>
|
||||
|
@ -15,7 +15,7 @@ class SvxTableControllerTest(UITestCase):
|
||||
# Create an Impress document with a single table in it.
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
template = self.xUITest.getTopFocusWindow()
|
||||
self.ui_test.close_dialog_through_button(template.getChild("cancel"))
|
||||
self.ui_test.close_dialog_through_button(template.getChild("close"))
|
||||
self.xUITest.executeCommand(".uno:SelectAll")
|
||||
self.xUITest.executeCommand(".uno:Delete")
|
||||
self.xUITest.executeCommand(".uno:InsertTable?Columns:short=2&Rows:short=2")
|
||||
|
@ -11,7 +11,7 @@ from uitest.uihelper.testDialog import testDialog
|
||||
|
||||
dialogs = [
|
||||
{"command": ".uno:OpenRemote", "closeButton": "cancel"},
|
||||
{"command": ".uno:NewDoc", "closeButton": "cancel"},
|
||||
{"command": ".uno:NewDoc", "closeButton": "close"},
|
||||
{"command": ".uno:SaveAsTemplate", "closeButton": "cancel"},
|
||||
{"command": ".uno:ExportToPDF", "closeButton": "cancel", "skipTestOK": True},
|
||||
# export needs filesystem
|
||||
|
@ -108,7 +108,7 @@ class ImpressBackgrounds(UITestCase):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
|
||||
buttons = ['btnbitmap', 'btncolor', 'btngradient', 'btnhatch', 'btnpattern']
|
||||
|
@ -16,7 +16,7 @@ class ImpressDrawinglayerTest(UITestCase):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
|
||||
change_measurement_unit(self, 'Centimeter')
|
||||
@ -67,7 +67,7 @@ class ImpressDrawinglayerTest(UITestCase):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
|
||||
change_measurement_unit(self, 'Centimeter')
|
||||
|
@ -14,7 +14,7 @@ class ImpressLayouts(UITestCase):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
|
||||
layouts= (".uno:AssignLayout?WhatLayout:long=20", ".uno:AssignLayout?WhatLayout:long=19",
|
||||
|
@ -15,7 +15,7 @@ class SimpleImpressTest(UITestCase):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
|
||||
xImpressDoc = self.xUITest.getTopFocusWindow()
|
||||
@ -32,7 +32,7 @@ class SimpleImpressTest(UITestCase):
|
||||
self.ui_test.create_doc_in_start_center("impress")
|
||||
|
||||
xTemplateDlg = self.xUITest.getTopFocusWindow()
|
||||
xCancelBtn = xTemplateDlg.getChild("cancel")
|
||||
xCancelBtn = xTemplateDlg.getChild("close")
|
||||
self.ui_test.close_dialog_through_button(xCancelBtn)
|
||||
|
||||
xImpressDoc = self.xUITest.getTopFocusWindow()
|
||||
|
Loading…
x
Reference in New Issue
Block a user