[Libreoffice-commits] core.git: uitest/ui_logger_dsl vcl/source

Ahmed ElShreif (via logerrit) logerrit at kemper.freedesktop.org
Wed Aug 21 03:39:09 UTC 2019


 uitest/ui_logger_dsl/General_commands.tx      |    4 ++--
 uitest/ui_logger_dsl/Special_commands.tx      |   26 +++++++++++++-------------
 uitest/ui_logger_dsl/UI_Object_commands.tx    |    4 ++--
 uitest/ui_logger_dsl/dsl_core.py              |   16 ++++++++--------
 uitest/ui_logger_dsl/starter_commands.tx      |    4 ++--
 uitest/ui_logger_dsl/ui_logger_dsl_grammar.tx |    4 ++--
 uitest/ui_logger_dsl/uno_commands.tx          |    4 ++--
 vcl/source/uitest/logger.cxx                  |    4 ++--
 8 files changed, 33 insertions(+), 33 deletions(-)

New commits:
commit 01af2d7122e8de8cbf96d1a04eb88817276db410
Author:     Ahmed ElShreif <aelshreif7 at gmail.com>
AuthorDate: Tue Aug 20 22:37:17 2019 -0500
Commit:     Ahmed ElShreif <aelshreif7 at gmail.com>
CommitDate: Tue Aug 20 22:37:17 2019 -0500

    uitest: Fix typos
    
    Change-Id: I41023dd1fd06ca48849726d3372f74a4990c27a3

diff --git a/uitest/ui_logger_dsl/General_commands.tx b/uitest/ui_logger_dsl/General_commands.tx
index aa3645112569..5f5c404402f5 100644
--- a/uitest/ui_logger_dsl/General_commands.tx
+++ b/uitest/ui_logger_dsl/General_commands.tx
@@ -1,6 +1,6 @@
 /*
-    This file for the log statments that is general for all application
-    we can use it as general commands then relate it to its application 
+    This file for the log statements that is general for all application
+    we can use it as general commands then relate it to its application
     as we have in the starter command
     //====================================
     also I make set zoom to be general as it will be better
diff --git a/uitest/ui_logger_dsl/Special_commands.tx b/uitest/ui_logger_dsl/Special_commands.tx
index a4bf1a697504..1667eace0ef3 100644
--- a/uitest/ui_logger_dsl/Special_commands.tx
+++ b/uitest/ui_logger_dsl/Special_commands.tx
@@ -1,7 +1,7 @@
 import type_options
 
 /*
-    This file for the log statments that relates to each diffrent applications
+    This file for the log statements that relates to each different applications
     Each Grammar Command here is related to his own application
 */
 
@@ -10,8 +10,8 @@ SpecialCommand:
 ;
 
 /*
-  This part for all the writer log statments:
-   
+  This part for all the writer log statements:
+
     1)  Type
     2)  Select
     3)  GOTO page
@@ -55,7 +55,7 @@ writer_Insert_BreakPage:
 
 //=================================================================//
 /*
-  This part for all the calc log statments:
+  This part for all the calc log statements:
 
     1)  select sheet
     2)  Select cell or range
@@ -87,7 +87,7 @@ calc_Select_cell:
   'Select from calc' select_op=select_options
 ;
 calc_AutoFill_filter:
-  'Lanuch AutoFilter from Col' col_num=INT 'and Row' row_num=INT
+  'Launch AutoFilter from Col' col_num=INT 'and Row' row_num=INT
 ;
 range_of_cells:
     '{' '"RANGE":' input_range=STRING '}'
@@ -132,9 +132,9 @@ select_options:
 
 //=================================================================//
 /*
-  This part for all the impress log statments:
-   
-    1)  Type 
+  This part for all the impress log statements:
+
+    1)  Type
     2)  Insert New Slide
     3)  Delete Slide
     4)  Duplicate Slide
@@ -163,9 +163,9 @@ impress_Rename_Slide:
 ;
 //=================================================================//
 /*
-  This part for all the math log statments:
-   
-    1)  element selector 
+  This part for all the math log statements:
+
+    1)  element selector
     2)  Type
 
   then we can add whatever we need in the future
@@ -182,8 +182,8 @@ math_Type_command:
 
 //=================================================================//
 /*
-  This part for all the draw log statments:
-   
+  This part for all the draw log statements:
+
     1) Type
     2) Insert New Page
     3) Delete Page
diff --git a/uitest/ui_logger_dsl/UI_Object_commands.tx b/uitest/ui_logger_dsl/UI_Object_commands.tx
index 9b25e09c6efc..58697a0fe216 100644
--- a/uitest/ui_logger_dsl/UI_Object_commands.tx
+++ b/uitest/ui_logger_dsl/UI_Object_commands.tx
@@ -37,13 +37,13 @@ EditUIObject:
    action=action_on_UIObject ('from' parent_id=ID)?
 ;
 SpinFieldUIObject:
-   change=increase_or_ecrease Spin_id=STRING ('from' parent_id=ID)? 
+   change=increase_or_ecrease Spin_id=STRING ('from' parent_id=ID)?
 ;
 ListBoxUIObject:
    'Select element with position ' POS=INT 'in' list_id=STRING ('from' parent_id=ID)?
 ;
 //=============================================================
-//hellper grammer for EditUIObject
+//hellper grammar for EditUIObject
 action_on_UIObject:
     Type_action | SELECT | Clear
 ;
diff --git a/uitest/ui_logger_dsl/dsl_core.py b/uitest/ui_logger_dsl/dsl_core.py
index d0e563f99fa6..074e4b871467 100644
--- a/uitest/ui_logger_dsl/dsl_core.py
+++ b/uitest/ui_logger_dsl/dsl_core.py
@@ -103,7 +103,7 @@ class ul_Compiler:
                 "EditUIObject": self.handle_Edit_uiObject,
                 "writer_Type_command": self.handle_writer_type,
                 "writer_Select_command": self.handle_writer_select,
-                "writer_GOTO_command": self.handle_wirter_goto,
+                "writer_GOTO_command": self.handle_writer_goto,
                 "calc_Select_cell": self.handle_calc_select,
                 "calc_switch_sheet": self.handle_calc_switch_sheet,
                 "calc_Type_command": self.handle_calc_Type_command,
@@ -227,7 +227,7 @@ class ul_Compiler:
         self.variables.append(line)
 
     def handle_uno(self, UNOCommand):
-        if UNOCommand.prameters == None:
+        if UNOCommand.parameters == None:
             line = (
                 double_tab
                 + 'self.xUITest.executeCommand("'
@@ -235,17 +235,17 @@ class ul_Compiler:
                 + '")\n'
             )
         else:
-            paramaters = ""
-            for p in UNOCommand.prameters.parameter_data:
-                paramaters = paramaters + '"' + p.key + '" : ' + str(p.value) + " ,"
-            paramaters = paramaters[:-1]
+            parameters = ""
+            for p in UNOCommand.parameters.parameter_data:
+                parameters = parameters + '"' + p.key + '" : ' + str(p.value) + " ,"
+            parameters = parameters[:-1]
 
             line = (
                 double_tab
                 + 'self.xUITest.executeCommandWithParameters("'
                 + UNOCommand.uno_command_name
                 + '", mkPropertyValues({'
-                + paramaters
+                + parameters
                 + "}) )\n"
             )
 
@@ -636,7 +636,7 @@ class ul_Compiler:
 
         self.prev_command = writer_Select_command
 
-    def handle_wirter_goto(self, writer_GOTO_command):
+    def handle_writer_goto(self, writer_GOTO_command):
 
         self.init_app()
 
diff --git a/uitest/ui_logger_dsl/starter_commands.tx b/uitest/ui_logger_dsl/starter_commands.tx
index 5a5d4b8de7ee..93fb0c2e0ab7 100644
--- a/uitest/ui_logger_dsl/starter_commands.tx
+++ b/uitest/ui_logger_dsl/starter_commands.tx
@@ -1,5 +1,5 @@
-//this file for the staters commands when you open any LO application
-//It's translate automatic that the buttom you push to open the app is a starter buttom
+//this file for the starters commands when you open any LO application
+//It's translate automatic that the button you push to open the app is a starter button
 
 StarterCommand:
   'Start' program_name=Program
diff --git a/uitest/ui_logger_dsl/ui_logger_dsl_grammar.tx b/uitest/ui_logger_dsl/ui_logger_dsl_grammar.tx
index f3aaeb1ccb90..123c9b6f3398 100644
--- a/uitest/ui_logger_dsl/ui_logger_dsl_grammar.tx
+++ b/uitest/ui_logger_dsl/ui_logger_dsl_grammar.tx
@@ -1,9 +1,9 @@
 //this file is to define the new dsl grammar
 /*
-  This file just Import all Grammar Statments from all other files to this file 
+  This file just Import all Grammar Statements from all other files to this file
   The Compiler just work with this file to Compile it
   Each file of these imported file has a Comments related to it's content
-*/ 
+*/
 
 import dialog_commands
 import starter_commands
diff --git a/uitest/ui_logger_dsl/uno_commands.tx b/uitest/ui_logger_dsl/uno_commands.tx
index 2d602f32b43c..e17d479af240 100644
--- a/uitest/ui_logger_dsl/uno_commands.tx
+++ b/uitest/ui_logger_dsl/uno_commands.tx
@@ -4,7 +4,7 @@
 */
 
 UNOCommand:
-    'Send UNO Command' '(' uno_command_name=STRING ')'  (prameters=parameter)?
+    'Send UNO Command' '(' uno_command_name=STRING ')'  (parameters=parameter)?
 ;
 
 parameter:
@@ -12,6 +12,6 @@ parameter:
 ;
 
 data:
-     ','? key=STRING ':' value= INT|ID 
+     ','? key=STRING ':' value= INT|ID
 ;
 
diff --git a/vcl/source/uitest/logger.cxx b/vcl/source/uitest/logger.cxx
index e2c3ade0a48b..ccbf44fda51c 100644
--- a/vcl/source/uitest/logger.cxx
+++ b/vcl/source/uitest/logger.cxx
@@ -357,7 +357,7 @@ void UITestLogger::logEvent(const EventDescription& rDescription)
 {
     OUString aParameterString = StringMapToOUString(rDescription.aParameters);
 
-    //here we will customize our statments depending on the caller of this function
+    //here we will customize our statements depending on the caller of this function
     OUString aLogLine;
     //first check on general commands
     if (rDescription.aAction == "SET")
@@ -424,7 +424,7 @@ void UITestLogger::logEvent(const EventDescription& rDescription)
         }
         else if (rDescription.aAction == "LAUNCH")
         {
-            aLogLine = "Lanuch AutoFilter from Col "
+            aLogLine = "Launch AutoFilter from Col "
                        + GetValueInMapWithIndex(rDescription.aParameters, 2) + " and Row "
                        + GetValueInMapWithIndex(rDescription.aParameters, 1);
         }


More information about the Libreoffice-commits mailing list