summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorAhmed ElShreif <aelshreif7@gmail.com>2019-08-17 21:37:21 -0500
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2019-08-19 22:56:39 +0800
commit49fb8654b4d6b0eb3184cb0218f164df88016b74 (patch)
treeef5a4c791fa60da1ab4760ad989f8a43ead8a5d2 /uitest
parent1eead54fe7e264d854d5daaad610b20426143b9b (diff)
uitest: add the SideBar implementation
Change-Id: I7de9bd97e868624476b5c39a5e37afc945206e4e
Diffstat (limited to 'uitest')
-rw-r--r--uitest/ui_logger_dsl/dsl_core.py10
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"):