diff options
author | Ahmed ElShreif <aelshreif7@gmail.com> | 2019-08-17 21:37:21 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2019-08-19 22:56:39 +0800 |
commit | 49fb8654b4d6b0eb3184cb0218f164df88016b74 (patch) | |
tree | ef5a4c791fa60da1ab4760ad989f8a43ead8a5d2 /uitest | |
parent | uitest: ignore the logging part of the QuerySaveDialog while closing the app (diff) | |
download | core-49fb8654b4d6b0eb3184cb0218f164df88016b74.tar.gz core-49fb8654b4d6b0eb3184cb0218f164df88016b74.zip |
uitest: add the SideBar implementation
Change-Id: I7de9bd97e868624476b5c39a5e37afc945206e4e
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/ui_logger_dsl/dsl_core.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/uitest/ui_logger_dsl/dsl_core.py b/uitest/ui_logger_dsl/dsl_core.py index 088fcf4a0d64..b77a3449aa6e 100644 --- a/uitest/ui_logger_dsl/dsl_core.py +++ b/uitest/ui_logger_dsl/dsl_core.py @@ -97,6 +97,7 @@ class ul_Compiler: 'math_Type_command':self.handle_math_Type_command, 'setZoom_command':self.handle_setZoom_command, 'draw_Type_command':self.handle_draw_Type_command, + 'SideBar':self.handle_SideBar, 'writer_Copy_Text':self.do_nothing, 'writer_Cut_Text':self.do_nothing, @@ -188,6 +189,15 @@ class ul_Compiler: self.current_app=app[StarterCommand.program_name] self.prev_command=StarterCommand + def handle_SideBar(self , SideBar): + + line=" self.xUITest.executeCommand(\".uno:Sidebar\")\n" + self.variables.append(line) + + self.write_line_with_one_parameters("MainWindow","SIDEBAR","PANEL",SideBar.name) + + self.prev_command=SideBar + def handle_Dialog(self, DialogCommand): if (DialogCommand.__class__.__name__ == "OpenModalDialog"): |