[Libreoffice-commits] core.git: Branch 'private/EL-SHREIF/ui_logger' - uitest/ui_logger_dsl vcl/source
Ahmed ElShreif (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jul 1 15:03:45 UTC 2019
uitest/ui_logger_dsl/General_commands.tx | 10 ++++------
uitest/ui_logger_dsl/Special_commands.tx | 2 +-
uitest/ui_logger_dsl/dialog_commands.tx | 13 ++++++++++---
uitest/ui_logger_dsl/starter_commands.tx | 1 +
uitest/ui_logger_dsl/uno_commands.tx | 5 +++--
vcl/source/window/dialog.cxx | 4 ++--
6 files changed, 21 insertions(+), 14 deletions(-)
New commits:
commit 4ef4e9237a0e9401b2c5d5ed8f5aaf79e6ebe180
Author: Ahmed ElShreif <aelshreif7 at gmail.com>
AuthorDate: Mon Jul 1 17:02:05 2019 +0200
Commit: Ahmed ElShreif <aelshreif7 at gmail.com>
CommitDate: Mon Jul 1 17:02:05 2019 +0200
Change small parts of the grammar and Dialog logger
Change-Id: I615989baafe65a6f6ae26fcd452c1e21081168b4
diff --git a/uitest/ui_logger_dsl/General_commands.tx b/uitest/ui_logger_dsl/General_commands.tx
index fb8f6115f450..1eb15f17733d 100644
--- a/uitest/ui_logger_dsl/General_commands.tx
+++ b/uitest/ui_logger_dsl/General_commands.tx
@@ -4,18 +4,16 @@
as we have starter command
//====================================
also I make set zoom to be general as it will be better
-*/
-
-SpecialCommand:
+*/
+GeneralCommand:
SideBar | setZoom_command | Select_command
;
-
SideBar:
'From SIDEBAR ' 'Choose ' '{"PANEL":' name=STRING '}'
;
setZoom_command:
- 'Set Zoom to ' zoom_value=INT
+ 'Set Zoom to ' zoom_value=INT
;
Select_command:
'Select ' '{"OBJECT":' name=STRING '}'
-;
\ No newline at end of file
+;
diff --git a/uitest/ui_logger_dsl/Special_commands.tx b/uitest/ui_logger_dsl/Special_commands.tx
index 40113495ac9e..c6f0a1d3305e 100644
--- a/uitest/ui_logger_dsl/Special_commands.tx
+++ b/uitest/ui_logger_dsl/Special_commands.tx
@@ -18,7 +18,7 @@ SpecialCommand:
then we can add whatever we need in the future
*/
writer_command:
- Type_command | Select_command | setZoom_command | GOTO_command
+ Type_command | Select_command | GOTO_command
;
Type_command:
'Type on writer' what_to_type=Type_options
diff --git a/uitest/ui_logger_dsl/dialog_commands.tx b/uitest/ui_logger_dsl/dialog_commands.tx
index abe32a53a992..a752442e5f1f 100644
--- a/uitest/ui_logger_dsl/dialog_commands.tx
+++ b/uitest/ui_logger_dsl/dialog_commands.tx
@@ -5,9 +5,16 @@ DialogCommand:
;
OpenDialog:
- 'Open' dialog_name=ID
+ OpenModalDialog | OpenModelessDialog
+;
+OpenModalDialog :
+ 'Open Modal ' dialog_name=ID
+;
+OpenModelessDialog :
+ 'Open Modeless ' dialog_name=ID
;
-
CloseDialog:
- 'Close Dialog'
+ //the additional_note=STRING? if you need to add name in the future
+ //Also it's used to make instance of the command of type CloseDialog
+ 'Close Dialog' additional_note=STRING?
;
diff --git a/uitest/ui_logger_dsl/starter_commands.tx b/uitest/ui_logger_dsl/starter_commands.tx
index c2d6296569b9..0461b8d149bd 100644
--- a/uitest/ui_logger_dsl/starter_commands.tx
+++ b/uitest/ui_logger_dsl/starter_commands.tx
@@ -9,3 +9,4 @@ Program:
"writer"|"calc"|"impress"|"draw"|"math"|"database"
;
+
diff --git a/uitest/ui_logger_dsl/uno_commands.tx b/uitest/ui_logger_dsl/uno_commands.tx
index 5dca5514b237..1cf702de62a2 100644
--- a/uitest/ui_logger_dsl/uno_commands.tx
+++ b/uitest/ui_logger_dsl/uno_commands.tx
@@ -1,9 +1,10 @@
UNOCommand:
- 'Send UNO Command' '(' uno_command=STRING ')' prameters*=parameter
+ 'Send UNO Command' '(' uno_command_name=STRING ')' (prameters=parameter)?
;
parameter:
'{' parameter_data *= data '}'
;
data:
- key=STRING ':' value=ID ','
+ key=STRING ':' value= INT|ID ','
;
+
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index cd9f8d72d977..2039f59c4b87 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -988,9 +988,9 @@ bool Dialog::ImplStartExecute()
aObject.EventName = "DialogExecute";
xEventBroadcaster->documentEventOccured(aObject);
if (bModal)
- UITestLogger::getInstance().log("Open " + get_id());
+ UITestLogger::getInstance().log("Open Modal " + get_id());
else
- UITestLogger::getInstance().log("Open " + get_id());
+ UITestLogger::getInstance().log("Open Modeless " + get_id());
return true;
}
More information about the Libreoffice-commits
mailing list