diff options
author | Ahmed ElShreif <aelshreif7@gmail.com> | 2019-08-03 11:51:11 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2019-08-19 22:56:38 +0800 |
commit | d13252673b05942194971f83f6612c45848901fd (patch) | |
tree | 145f6d9471b8707c9a0e8c32a1c7c0a79920c8d6 /uitest | |
parent | be85e2d1d78aba2a0554645acbbacacf200f1bb4 (diff) |
uitest: log more events
Impress:
1) Delete Slide
2) Duplicate Slide
3) Rename Slide
Draw:
1) Delte Page
2) Rename Page
Change-Id: I124bdf96c58dfe00bdb039c5e93afc0dc6e7163d
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/ui_logger_dsl/Special_commands.tx | 28 | ||||
-rw-r--r-- | uitest/ui_logger_dsl/dsl_core.py | 5 |
2 files changed, 30 insertions, 3 deletions
diff --git a/uitest/ui_logger_dsl/Special_commands.tx b/uitest/ui_logger_dsl/Special_commands.tx index 1d11067424a9..335b6d24e7d3 100644 --- a/uitest/ui_logger_dsl/Special_commands.tx +++ b/uitest/ui_logger_dsl/Special_commands.tx @@ -128,12 +128,16 @@ select_options: This part for all the impress log statments: 1) Type - 2) Insert New Page + 2) Insert New Slide + 3) Delete Slide + 4) Duplicate Slide + 5) Rename Slide then we can add whatever we need in the future */ impress_command: - impress_Type_command | impress_Insert_Slide + impress_Type_command | impress_Insert_Slide | impress_Delete_Page | + impress_Duplicate_Slide | impress_Rename_Slide ; impress_Type_command: 'Type on impress ' what_to_type=Type_options @@ -141,6 +145,15 @@ impress_Type_command: impress_Insert_Slide: 'Insert New Slide at Position ' position_num=INT ; +impress_Delete_Page: + 'Delete Slide number ' position_num=INT +; +impress_Duplicate_Slide: + 'Duplicate The Selected Slide ' +; +impress_Rename_Slide: + 'Rename The Selected Slide from ' old_name=STRING 'to' new_name=STRING +; //=================================================================// /* This part for all the math log statments: @@ -166,15 +179,24 @@ math_Type_command: 1) Type 2) Insert New Page + 3) Delete Page + 4) Rename Page then we can add whatever we need in the future */ draw_command: - draw_Type_command | draw_Insert_Page + draw_Type_command | draw_Insert_Page | draw_Delete_Page | + draw_Rename_Page ; draw_Type_command: 'Type on draw ' what_to_type=Type_options ; draw_Insert_Page: 'Insert New Page at Position ' position_num=INT +; +draw_Delete_Page: + 'Delete Page number ' position_num=INT +; +draw_Rename_Page: + 'Rename The Selected Page from ' old_name=STRING 'to' new_name=STRING ;
\ No newline at end of file diff --git a/uitest/ui_logger_dsl/dsl_core.py b/uitest/ui_logger_dsl/dsl_core.py index 9a5f375b5aa9..1eaa33a441cd 100644 --- a/uitest/ui_logger_dsl/dsl_core.py +++ b/uitest/ui_logger_dsl/dsl_core.py @@ -102,7 +102,12 @@ class ul_Compiler: 'calc_Merge_Cells':self.do_nothing, 'calc_UNMerge_Cells':self.do_nothing, 'impress_Insert_Slide':self.do_nothing, + 'impress_Delete_Page':self.do_nothing, + 'impress_Duplicate_Slide':self.do_nothing, + 'impress_Rename_Slide':self.do_nothing, 'draw_Insert_Page':self.do_nothing, + 'draw_Delete_Page':self.do_nothing, + 'draw_Rename_Page':self.do_nothing, }) self.log_lines=self.get_log_file(self.input_address) |